Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype Centile = Centile {}
- renderCentile :: Int -> Centile -> String
- briefCentiles :: [Centile]
- stdCentiles :: [Centile]
- nEquicentiles :: Int -> [Centile]
- class Real a => Divisible a where
- divide :: a -> Double -> a
- fromDouble :: Double -> a
- weightedAverage :: forall b. Divisible b => [(Int, b)] -> b
- averageDouble :: Divisible a => [a] -> Double
- data CDFError
- data CDF p a = CDF {}
- cdf :: forall a. Divisible a => [Centile] -> [a] -> CDF I a
- cdfZ :: forall a. Divisible a => [Centile] -> [a] -> CDF I a
- cdfAverageVal :: KnownCDF p => CDF p a -> Double
- centilesCDF :: CDF p a -> [Centile]
- filterCDF :: ((Centile, p a) -> Bool) -> CDF p a -> CDF p a
- subsetCDF :: [Centile] -> CDF p b -> CDF p b
- zeroCDF :: (Real a, KnownCDF p) => CDF p a
- projectCDF :: Centile -> CDF p a -> Maybe (p a)
- projectCDF' :: String -> Centile -> CDF p a -> p a
- indexCDF :: Int -> CDF p a -> p a
- data CDFIx p where
- class KnownCDF a where
- type family CDFList (f :: Type -> Type) (t :: Type) :: Type where ...
- liftCDFVal :: forall a p. Real a => a -> CDFIx p -> p a
- unliftCDFVal :: forall a p. Divisible a => CDFIx p -> p a -> a
- unliftCDFValExtra :: forall a p. Divisible a => CDFIx p -> p a -> [a]
- arity :: forall p a b. KnownCDF p => (I a -> b) -> (CDF I a -> b) -> p a -> b
- cdfArity :: forall p a b. KnownCDF p => (CDF I a -> b) -> (CDF (CDF I) a -> b) -> CDF p a -> b
- cdfArity' :: forall p a. KnownCDF p => (CDF I a -> I a) -> (CDF (CDF I) a -> CDF I a) -> CDF p a -> p a
- arityProj :: forall p a. KnownCDF p => (CDF I a -> a) -> p a -> a
- mapCDFCentiles :: (Centile -> p a -> b) -> CDF p a -> [b]
- data Combine p a = Combine {}
- stdCombine1 :: forall a. Divisible a => [Centile] -> Combine I a
- stdCombine2 :: Divisible a => [Centile] -> Combine (CDF I) a
- type CDF2 a = CDF (CDF I) a
- collapseCDF :: ([a] -> b) -> CDF (CDF I) a -> CDF I b
- collapseCDFs :: forall a. Ord a => Combine I a -> [CDF I a] -> Either CDFError (CDF I a)
- cdf2OfCDFs :: forall a p. (KnownCDF p, Ord a) => Combine p a -> [CDF p a] -> Either CDFError (CDF (CDF I) a)
- module Data.SOP.Strict
Documentation
Centile specifier: a fractional in range of [0; 1].
briefCentiles :: [Centile] Source #
stdCentiles :: [Centile] Source #
nEquicentiles :: Int -> [Centile] Source #
class Real a => Divisible a where Source #
Avoiding Fractional
Instances
weightedAverage :: forall b. Divisible b => [(Int, b)] -> b Source #
averageDouble :: Divisible a => [a] -> Double Source #
Instances
cdf :: forall a. Divisible a => [Centile] -> [a] -> CDF I a Source #
Simple, monomorphic, first-order CDF.
centilesCDF :: CDF p a -> [Centile] Source #
liftCDFVal :: forall a p. Real a => a -> CDFIx p -> p a Source #
unliftCDFVal :: forall a p. Divisible a => CDFIx p -> p a -> a Source #
unliftCDFValExtra :: forall a p. Divisible a => CDFIx p -> p a -> [a] Source #
cdfArity :: forall p a b. KnownCDF p => (CDF I a -> b) -> (CDF (CDF I) a -> b) -> CDF p a -> b Source #
cdfArity' :: forall p a. KnownCDF p => (CDF I a -> I a) -> (CDF (CDF I) a -> CDF I a) -> CDF p a -> p a Source #
mapCDFCentiles :: (Centile -> p a -> b) -> CDF p a -> [b] Source #
collapseCDFs :: forall a. Ord a => Combine I a -> [CDF I a] -> Either CDFError (CDF I a) Source #
Collapse basic CDFs.
cdf2OfCDFs :: forall a p. (KnownCDF p, Ord a) => Combine p a -> [CDF p a] -> Either CDFError (CDF (CDF I) a) Source #
Polymorphic, but practically speaking, intended for either: 1. given a ([I] -> CDF I) function, and a list of (CDF I), produce a CDF (CDF I), or 2. given a ([CDF I] -> CDF I) function, and a list of (CDF (CDF I)), produce a CDF (CDF I)
module Data.SOP.Strict