www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Statistics functions

reply Russel Winder via Digitalmars-d <digitalmars-d puremagic.com> writes:
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.
=C2=A0
--=20
Russel.
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder ekiga.n=
et
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
Sep 01 2016
parent reply jmh530 <john.michael.hall gmail.com> writes:
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
Sep 01 2016
parent reply John Colvin <john.loughran.colvin gmail.com> writes:
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/
Sep 01 2016
next sibling parent reply jmh530 <john.michael.hall gmail.com> writes:
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!
Sep 02 2016
parent reply jmh530 <john.michael.hall gmail.com> writes:
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?
Sep 02 2016
parent reply John Colvin <john.loughran.colvin gmail.com> writes:
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.
Sep 02 2016
parent jmh530 <john.michael.hall gmail.com> writes:
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.
Sep 02 2016
prev sibling next sibling parent Russel Winder via Digitalmars-d <digitalmars-d puremagic.com> writes:
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:
=20
 On Thursday, 1 September 2016 at 15:58:38 UTC, Russel Winder=C2=A0
 wrote:
=20
=20
 Is there no module in D for statistics functions such as mean,=C2=A0
 median,
 mode, standard deviation, linear least squares, etc. There are=C2=A0
 codes on
 Rosetta Code but a) they seem a bit inconsistent in style; and=C2=A0
 b) they
 are not in a module available for use.
=20 Have you tried dstats https://github.com/DlangScience/dstats
=20 Now with actually working API docs:=C2=A0 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". --=20 Russel. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder ekiga.n= et 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
Sep 09 2016
prev sibling parent Russel Winder via Digitalmars-d <digitalmars-d puremagic.com> writes:
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:
=20
 On Thursday, 1 September 2016 at 15:58:38 UTC, Russel Winder=C2=A0
 wrote:
=20
=20
 Is there no module in D for statistics functions such as mean,=C2=A0
 median,
 mode, standard deviation, linear least squares, etc. There are=C2=A0
 codes on
 Rosetta Code but a) they seem a bit inconsistent in style; and=C2=A0
 b) they
 are not in a module available for use.
=20 Have you tried dstats https://github.com/DlangScience/dstats
=20 Now with actually working API docs:=C2=A0 https://dlangscience.github.io/dstats/api/
Should we be organising a short sprint on this somewhere in London so as to get activity moving? --=20 Russel. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder ekiga.n= et 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
Sep 09 2016