Thread overview | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
September 01, 2016 Statistics functions | ||||
---|---|---|---|---|
| ||||
Attachments:
|
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 Re: Statistics functions | ||||
---|---|---|---|---|
| ||||
Posted in reply to Russel Winder | 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 Re: Statistics functions | ||||
---|---|---|---|---|
| ||||
Posted in reply to jmh530 | 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 Re: Statistics functions | ||||
---|---|---|---|---|
| ||||
Posted in reply to John Colvin | 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 Re: Statistics functions | ||||
---|---|---|---|---|
| ||||
Posted in reply to jmh530 | 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 Re: Statistics functions | ||||
---|---|---|---|---|
| ||||
Posted in reply to jmh530 | 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 Re: Statistics functions | ||||
---|---|---|---|---|
| ||||
Posted in reply to John Colvin | 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 Re: Statistics functions | ||||
---|---|---|---|---|
| ||||
Posted in reply to John Colvin Attachments:
| 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 Re: Statistics functions | ||||
---|---|---|---|---|
| ||||
Posted in reply to John Colvin Attachments:
| 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 |
Copyright © 1999-2021 by the D Language Foundation