On Wed, 26 Sep 2007, ChrisK wrote:
ok wrote:
There are a number of interesting issues raised by mbeddoe's
Math.Statistics.
data (Floating a, Ord a)
=> Simple_Continuous_Variate a
= SCV [a] Int a a (Array Int a)
list_to_variate xs = SCV xs n m s o
where n = length x
On Wed, 26 Sep 2007, apfelmus wrote:
ok wrote:
I believe the author may have misunderstood "numerically stable".
The obvious (sum xs)/(fromIntegral $ length $ xs) is fine for
the mean,
That's probably my fault, out of ignorance. Do you know a good online
resource about numeric
ok wrote:
I believe the author may have misunderstood "numerically stable".
The obvious (sum xs)/(fromIntegral $ length $ xs) is fine for
the mean,
That's probably my fault, out of ignorance. Do you know a good online
resource about numeric stability? (I don't have the Knuth at ho
ok wrote:
> There are a number of interesting issues raised by mbeddoe's
> Math.Statistics.
>
> data (Floating a, Ord a)
> => Simple_Continuous_Variate a
>= SCV [a] Int a a (Array Int a)
>
> list_to_variate xs = SCV xs n m s o
> where n = length xs
> m = su
There are a number of interesting issues raised by mbeddoe's
Math.Statistics.
0. Coding issues.
Why use foldr1 (*) instead of product?
covm xs = split' (length xs) cs
where
cs = [ cov a b | a <- xs, b <- xs]
split' n = unfoldr (\y -> if null y then Nothing