No statistics or math module in core?

Francois Berenger francois.berenger.working at gmail.com
Tue Nov 13 01:53:54 GMT 2012


I had to code for my needs:

pearson, spearman (copy-paste from Biocaml this one), mean, median, std_dev
+ some significance test for the Pearson score.

While doing this, I just felt I was wasting my time
(especially once I noticed there is a stat module in Haskell with all of 
this,
crafted by people much more versed than me in numerical algorithms, I 
guess).

And, the cherry at the top of the cake, having to declare pi ...

On Tuesday, November 13, 2012 10:00:14 AM UTC+9, Francois Berenger wrote:
>
> Yes, I noticed this also very recently.
>
> On Tuesday, November 13, 2012 12:54:16 AM UTC+9, Markus wrote:
>>
>> True, it surprisingly seems that Spearman hasn't been implemented in GSL 
>> yet. 
>>
>> On Mon, Nov 12, 2012 at 10:39 AM, Ashish Agarwal <agarw... at gmail.com> 
>> wrote: 
>> > I found Pearson correlation in GSL [1] but don't see Spearman. 
>> > 
>> > [1] http://www.gnu.org/software/gsl/manual/html_node/Correlation.html 
>> > 
>> > 
>> > 
>> > On Mon, Nov 12, 2012 at 10:20 AM, Markus Mottl <markus... at gmail.com> 
>> > wrote: 
>> >> 
>> >> On Mon, Nov 12, 2012 at 10:08 AM, Ashish Agarwal <agarw... at gmail.com> 
>> >> wrote: 
>> >> > We have these in Biocaml.Math, which is not a great place for them. 
>> It 
>> >> > would 
>> >> > be nice for OCaml to have some math/statistics libraries. OCaml-R 
>> has a 
>> >> > binding to R's math library, but there isn't a stable release. 
>> >> 
>> >> There are two libraries that should mostly address your needs for math 
>> >> and statistics: lacaml and gsl-ocaml: 
>> >> 
>> >>   https://bitbucket.org/mmottl/lacaml 
>> >>   https://bitbucket.org/mmottl/gsl-ocaml 
>> >> 
>> >> The first one interfaces most of BLAS/LAPACK, which are the de-facto 
>> >> standard for heavy-duty linear algebra (vector and matrix operations, 
>> >> factorizations, eigenproblems, solving equations and least-squares 
>> >> problems, etc.). 
>> >> 
>> >> gsl-ocaml interfaces most of the GNU Scientific Library, which is 
>> >> probably the most widely used open source library for that purpose. 
>> >> 
>> >> Regards, 
>> >> Markus 
>> >> 
>> >> -- 
>> >> Markus Mottl        http://www.ocaml.info        markus... at gmail.com 
>> > 
>> > 
>>
>>
>>
>> -- 
>> Markus Mottl        http://www.ocaml.info        markus... at gmail.com 
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ocaml.org/pipermail/core/attachments/20121112/94b22056/attachment-0001.html>


More information about the core mailing list