Re: [Haskell-cafe] Mathematics and Statistics libraries

Date: Sun, 25 Mar 2012 17:54:11 +0400
From: Aleksey Khudyakov
Subject: Re: [Haskell-cafe] Mathematics and Statistics libraries To: haskell-cafe@haskell.org Message-ID: <4F6F2383.6070404@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed On 25.03.2012 14:52, Tom Doris wrote:
Hi Heinrich,
And of course data visualization. Only library I know of is Chart[1] but I don't like API much.
There is the plot[1] library which provides for updateable plots from GHCi REPL and has a gnuplot-like interface. I wrote it for this very reason, a mathematics/statistics development environment. It uses Data.Vector.Storable, which provides for compatability with both statistics and hmatrix packages (as well as hstatistics).
I think talking about data frames is a bit pointless unless we specify what is data frame. Basically there are two representations of tabular data structure: array of tuples or tuple of arrays. If you want first go for Data.Vector.Vector YourData. If you want second you'll probably end up with some HList-like data structure to hold arrays.
Matrices from hmatrix are easily converted to rows or columns of
Data.Vector.Storable and can be sliced and otherwise manipulated. [1] http://hackage.haskell.org/package/plot<%20%20[1]%20http://hackage.haskell.org/package/plot> Vivian

There is the plot[1] library which provides for updateable plots from GHCi REPL and has a gnuplot-like interface. I wrote it for this very reason, a mathematics/statistics development environment.
It uses Data.Vector.Storable, which provides for compatability with both statistics and hmatrix packages (as well as hstatistics).
Looks very interesting. I'll try it out.
I think talking about data frames is a bit pointless unless we specify what is data frame. Basically there are two representations of tabular data structure: array of tuples or tuple of arrays. If you want first go for Data.Vector.Vector YourData. If you want second you'll probably end up with some HList-like data structure to hold arrays.
Matrices from hmatrix are easily converted to rows or columns of Data.Vector.Storable and can be sliced and otherwise manipulated.
That's why I said that homogenous data frame is simple. But if you want to have columns which hold values with different type they lo longer a matrix and thing become way more interesting.
participants (2)
-
Aleksey Khudyakov
-
Vivian McPhail