Re: Request for feedback on API design

2010-12-13 Thread Ethan Furman
Steven D'Aprano wrote: I am soliciting feedback regarding the API of my statistics module: http://code.google.com/p/pycalcstats/ Specifically the following couple of issues: (1) Multivariate statistics such as covariance have two obvious APIs: A pass the X and Y values as two separate it

Re: Request for feedback on API design

2010-12-13 Thread Arnaud Delobelle
Steven D'Aprano writes: > I am soliciting feedback regarding the API of my statistics module: > > http://code.google.com/p/pycalcstats/ > > > Specifically the following couple of issues: > > (1) Multivariate statistics such as covariance have two obvious APIs: > > A pass the X and Y values as

Re: Request for feedback on API design

2010-12-09 Thread Steven D'Aprano
On Thu, 09 Dec 2010 18:48:10 -0600, Tim Chase wrote: > On 12/09/2010 05:44 PM, Steven D'Aprano wrote: >> (1) Multivariate statistics such as covariance have two obvious APIs: >> >> A pass the X and Y values as two separate iterable arguments, >> e.g.: >>cov([1, 2, 3], [4, 5, 6])

Re: Request for feedback on API design

2010-12-09 Thread Tim Chase
On 12/09/2010 05:44 PM, Steven D'Aprano wrote: (1) Multivariate statistics such as covariance have two obvious APIs: A pass the X and Y values as two separate iterable arguments, e.g.: cov([1, 2, 3], [4, 5, 6]) B pass the X and Y values as a single iterable of tuples, e.g.:

Request for feedback on API design

2010-12-09 Thread Steven D'Aprano
I am soliciting feedback regarding the API of my statistics module: http://code.google.com/p/pycalcstats/ Specifically the following couple of issues: (1) Multivariate statistics such as covariance have two obvious APIs: A pass the X and Y values as two separate iterable arguments, e.g.: