Permalink
Browse files

Variance for StudentT was wrong, fixed here.

  • Loading branch information...
1 parent f03bc31 commit aee10c9901590f146e66fbb3dac360a90a9606cd @johnmcdonnell johnmcdonnell committed with Shimuuar Mar 14, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 Statistics/Distribution/StudentT.hs
@@ -67,8 +67,8 @@ instance D.MaybeMean StudentT where
| otherwise = Nothing
instance D.MaybeVariance StudentT where
- maybeStdDev (StudentT ndf) | ndf > 2 = Just $ ndf / (ndf - 2)
- | otherwise = Nothing
+ maybeVariance (StudentT ndf) | ndf > 2 = Just $! ndf / (ndf - 2)
+ | otherwise = Nothing
instance D.ContGen StudentT where
genContVar = D.genContinous

0 comments on commit aee10c9

Please sign in to comment.