Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Shimuuar committed Oct 2, 2011
1 parent 4e2b24b commit 316b494
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 2 additions & 3 deletions Statistics/Distribution/ChiSquared.hs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ module Statistics.Distribution.ChiSquared (
, chiSquaredNDF
) where

import Data.Typeable (Typeable)
import Statistics.Constants (m_huge)
import Data.Typeable (Typeable)
import Statistics.Math (incompleteGamma,invIncompleteGamma,logGamma)

import qualified Statistics.Distribution as D
Expand Down Expand Up @@ -84,7 +83,7 @@ density chi x
{-# INLINE density #-}

quantile :: ChiSquared -> Double -> Double
quantile d@(ChiSquared ndf) p
quantile (ChiSquared ndf) p
| p == 0 = 0
| p == 1 = 1/0
| p > 0 && p < 1 = 2 * invIncompleteGamma (fromIntegral ndf / 2) p
Expand Down
2 changes: 0 additions & 2 deletions Statistics/Distribution/Uniform.hs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ module Statistics.Distribution.Uniform (
import Data.Typeable (Typeable)
import qualified Statistics.Distribution as D

import Control.Exception
import Prelude hiding (catch)

-- | Uniform distribution
data UniformDistribution = UniformDistribution {-# UNPACK #-} !Double {-# UNPACK #-} !Double
Expand Down

0 comments on commit 316b494

Please sign in to comment.