## digitalmars.D - Statistics functions

• Russel Winder via Digitalmars-d (15/15) Sep 01 2016 Is there no module in D for statistics functions such as mean, median,
• jmh530 (4/11) Sep 01 2016 Have you tried dstats
• John Colvin (3/15) Sep 01 2016 Now with actually working API docs:
• jmh530 (2/4) Sep 02 2016 That makes me happy!
• jmh530 (3/9) Sep 02 2016 It occurs to me that I don't know how much dstats works with
• John Colvin (5/15) Sep 02 2016 Short story: it doesn't have any explicit support. Ndslice is
• jmh530 (2/6) Sep 02 2016 What I figured, thanks.
• Russel Winder via Digitalmars-d (14/33) Sep 09 2016 Is there any activity to update and improve. Some of the code looks
• Russel Winder via Digitalmars-d (13/32) Sep 09 2016 Should we be organising a short sprint on this somewhere in London so
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
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
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
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
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
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

The ndslice range interface should mean quite a lot of stuff will
work anyway.
```
Sep 02 2016
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

The ndslice range interface should mean quite a lot of stuff
will work anyway.

What I figured, thanks.
```
Sep 02 2016
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
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