Thread overview
Statistics functions
Sep 01, 2016
Russel Winder
Sep 01, 2016
jmh530
Sep 01, 2016
John Colvin
Sep 02, 2016
jmh530
Sep 02, 2016
jmh530
Sep 02, 2016
John Colvin
Sep 02, 2016
jmh530
Sep 09, 2016
Russel Winder
Sep 09, 2016
Russel Winder
September 01, 2016
Is there no module in D for statistics functions such as mean, median,
mode, standard deviation, linear least squares, etc. There are codes on
Rosetta Code but a) they seem a bit inconsistent in style; and b) they
are not in a module available for use.

-- 
Russel. ============================================================================= Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder@ekiga.net 41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel@winder.org.uk London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder

September 01, 2016
On Thursday, 1 September 2016 at 15:58:38 UTC, Russel Winder wrote:
>
> Is there no module in D for statistics functions such as mean, median,
> mode, standard deviation, linear least squares, etc. There are codes on
> Rosetta Code but a) they seem a bit inconsistent in style; and b) they
> are not in a module available for use.

Have you tried dstats
https://github.com/DlangScience/dstats
September 01, 2016
On Thursday, 1 September 2016 at 16:28:35 UTC, jmh530 wrote:
> On Thursday, 1 September 2016 at 15:58:38 UTC, Russel Winder wrote:
>>
>> Is there no module in D for statistics functions such as mean, median,
>> mode, standard deviation, linear least squares, etc. There are codes on
>> Rosetta Code but a) they seem a bit inconsistent in style; and b) they
>> are not in a module available for use.
>
> Have you tried dstats
> https://github.com/DlangScience/dstats

Now with actually working API docs: https://dlangscience.github.io/dstats/api/
September 02, 2016
On Thursday, 1 September 2016 at 23:44:15 UTC, John Colvin wrote:
>
> Now with actually working API docs: https://dlangscience.github.io/dstats/api/

That makes me happy!
September 02, 2016
On Friday, 2 September 2016 at 14:37:55 UTC, jmh530 wrote:
> On Thursday, 1 September 2016 at 23:44:15 UTC, John Colvin wrote:
>>
>> Now with actually working API docs: https://dlangscience.github.io/dstats/api/
>
> That makes me happy!

It occurs to me that I don't know how much dstats works with ndslices?
September 02, 2016
On Friday, 2 September 2016 at 14:40:36 UTC, jmh530 wrote:
> On Friday, 2 September 2016 at 14:37:55 UTC, jmh530 wrote:
>> On Thursday, 1 September 2016 at 23:44:15 UTC, John Colvin wrote:
>>>
>>> Now with actually working API docs: https://dlangscience.github.io/dstats/api/
>>
>> That makes me happy!
>
> It occurs to me that I don't know how much dstats works with ndslices?

Short story: it doesn't have any explicit support. Ndslice is much newer than dstats.

The ndslice range interface should mean quite a lot of stuff will work anyway.
September 02, 2016
On Friday, 2 September 2016 at 17:52:12 UTC, John Colvin wrote:
>
> Short story: it doesn't have any explicit support. Ndslice is much newer than dstats.
>
> The ndslice range interface should mean quite a lot of stuff will work anyway.

What I figured, thanks.
September 09, 2016
On Thu, 2016-09-01 at 23:44 +0000, John Colvin via Digitalmars-d wrote:
> On Thursday, 1 September 2016 at 16:28:35 UTC, jmh530 wrote:
> > 
> > On Thursday, 1 September 2016 at 15:58:38 UTC, Russel Winder wrote:
> > > 
> > > 
> > > Is there no module in D for statistics functions such as mean,
> > > median,
> > > mode, standard deviation, linear least squares, etc. There are
> > > codes on
> > > Rosetta Code but a) they seem a bit inconsistent in style; and
> > > b) they
> > > are not in a module available for use.
> > 
> > Have you tried dstats https://github.com/DlangScience/dstats
> 
> Now with actually working API docs: https://dlangscience.github.io/dstats/api/

Is there any activity to update and improve. Some of the code looks strange. But then I realise who the original author was for much of it, and think "what am I misunderstanding".

-- 
Russel. ============================================================================= Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder@ekiga.net 41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel@winder.org.uk London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder

September 09, 2016
On Thu, 2016-09-01 at 23:44 +0000, John Colvin via Digitalmars-d wrote:
> On Thursday, 1 September 2016 at 16:28:35 UTC, jmh530 wrote:
> > 
> > On Thursday, 1 September 2016 at 15:58:38 UTC, Russel Winder wrote:
> > > 
> > > 
> > > Is there no module in D for statistics functions such as mean,
> > > median,
> > > mode, standard deviation, linear least squares, etc. There are
> > > codes on
> > > Rosetta Code but a) they seem a bit inconsistent in style; and
> > > b) they
> > > are not in a module available for use.
> > 
> > Have you tried dstats https://github.com/DlangScience/dstats
> 
> Now with actually working API docs: https://dlangscience.github.io/dstats/api/

Should we be organising a short sprint on this somewhere in London so as to get activity moving?

-- 
Russel. ============================================================================= Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder@ekiga.net 41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel@winder.org.uk London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder