Re: [statistics][descriptive] Classes or static methods for common descriptive statistics?

2019-05-29 Thread Alex Herbert
> On 29 May 2019, at 21:57, Eric Barnhill wrote: > > At the end of the day, like we just saw on the user list today. users are > going to come around with arrays and want to get the mean, median, > variance, or quantiles of that array. The easiest way to do this is to have > some sort of

Re: [statistics][descriptive] Classes or static methods for common descriptive statistics?

2019-05-29 Thread Alex Herbert
On 29/05/2019 12:50, Gilles Sadowski wrote: Hello. Le mar. 28 mai 2019 à 20:36, Alex Herbert a écrit : On 28 May 2019, at 18:09, Eric Barnhill wrote: The previous commons-math interface for descriptive statistics used a paradigm of constructing classes for various statistical functions

Re: [statistics][descriptive] Classes or static methods for common descriptive statistics?

2019-05-29 Thread Eric Barnhill
At the end of the day, like we just saw on the user list today. users are going to come around with arrays and want to get the mean, median, variance, or quantiles of that array. The easiest way to do this is to have some sort of static method that delivers these: double mean =

Re: [statistics][descriptive] Classes or static methods for common descriptive statistics?

2019-05-29 Thread Gilles Sadowski
Hello. Le mar. 28 mai 2019 à 20:36, Alex Herbert a écrit : > > > > > On 28 May 2019, at 18:09, Eric Barnhill wrote: > > > > The previous commons-math interface for descriptive statistics used a > > paradigm of constructing classes for various statistical functions and > > calling evaluate().

Re: [statistics][descriptive] Classes or static methods for common descriptive statistics?

2019-05-28 Thread Alex Herbert
> On 28 May 2019, at 18:09, Eric Barnhill wrote: > > The previous commons-math interface for descriptive statistics used a > paradigm of constructing classes for various statistical functions and > calling evaluate(). Example > > Mean mean = new Mean(); > double mn = mean.evaluate(double[])

[statistics][descriptive] Classes or static methods for common descriptive statistics?

2019-05-28 Thread Eric Barnhill
The previous commons-math interface for descriptive statistics used a paradigm of constructing classes for various statistical functions and calling evaluate(). Example Mean mean = new Mean(); double mn = mean.evaluate(double[]) I wrote this type of code all through grad school and always found