statistics-0.13.3.0: A library of statistical types, data, and functions

Copyright (c) 2013 John McDonnell; BSD3 bos@serpentine.com experimental portable None Haskell98

Statistics.Distribution.Transform

Description

Transformations over distributions

Synopsis

# Documentation

data LinearTransform d #

Linear transformation applied to distribution.

LinearTransform μ σ _
x' = μ + σ·x

Constructors

 LinearTransform FieldslinTransLocation :: !DoubleLocation parameter.linTransScale :: !DoubleScale parameter.linTransDistr :: dDistribution being transformed.

Instances

 # Methodsfmap :: (a -> b) -> LinearTransform a -> LinearTransform b #(<\$) :: a -> LinearTransform b -> LinearTransform a # Eq d => Eq (LinearTransform d) # Methods(==) :: LinearTransform d -> LinearTransform d -> Bool #(/=) :: LinearTransform d -> LinearTransform d -> Bool # Data d => Data (LinearTransform d) # Methodsgfoldl :: (forall a b. Data a => c (a -> b) -> a -> c b) -> (forall g. g -> c g) -> LinearTransform d -> c (LinearTransform d) #gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (LinearTransform d) #dataCast1 :: Typeable (* -> *) t => (forall a. Data a => c (t a)) -> Maybe (c (LinearTransform d)) #dataCast2 :: Typeable (* -> * -> *) t => (forall a e. (Data a, Data e) => c (t a e)) -> Maybe (c (LinearTransform d)) #gmapT :: (forall b. Data b => b -> b) -> LinearTransform d -> LinearTransform d #gmapQl :: (r -> r' -> r) -> r -> (forall a. Data a => a -> r') -> LinearTransform d -> r #gmapQr :: (r' -> r -> r) -> r -> (forall a. Data a => a -> r') -> LinearTransform d -> r #gmapQ :: (forall a. Data a => a -> u) -> LinearTransform d -> [u] #gmapQi :: Int -> (forall a. Data a => a -> u) -> LinearTransform d -> u #gmapM :: Monad m => (forall a. Data a => a -> m a) -> LinearTransform d -> m (LinearTransform d) #gmapMp :: MonadPlus m => (forall a. Data a => a -> m a) -> LinearTransform d -> m (LinearTransform d) #gmapMo :: MonadPlus m => (forall a. Data a => a -> m a) -> LinearTransform d -> m (LinearTransform d) # Read d => Read (LinearTransform d) # Methods Show d => Show (LinearTransform d) # MethodsshowList :: [LinearTransform d] -> ShowS # # Associated Typestype Rep (LinearTransform d) :: * -> * # Methodsfrom :: LinearTransform d -> Rep (LinearTransform d) x #to :: Rep (LinearTransform d) x -> LinearTransform d # ToJSON d => ToJSON (LinearTransform d) # MethodstoJSONList :: [LinearTransform d] -> Value # # Methods Binary d => Binary (LinearTransform d) # Methodsput :: LinearTransform d -> Put #putList :: [LinearTransform d] -> Put # # MethodsgenContVar :: PrimMonad m => LinearTransform d -> Gen (PrimState m) -> m Double # (Entropy d, DiscreteDistr d) => Entropy (LinearTransform d) # Methods # Methods # Methods # Methods Mean d => Mean (LinearTransform d) # Methods # Methods # Methods # Methods type Rep (LinearTransform d) # type Rep (LinearTransform d) = D1 (MetaData "LinearTransform" "Statistics.Distribution.Transform" "statistics-0.13.3.0-5G6LnnwwEAsBXhZQyOoIJ5" False) (C1 (MetaCons "LinearTransform" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "linTransLocation") SourceUnpack SourceStrict DecidedUnpack) (Rec0 Double)) ((:*:) (S1 (MetaSel (Just Symbol "linTransScale") SourceUnpack SourceStrict DecidedUnpack) (Rec0 Double)) (S1 (MetaSel (Just Symbol "linTransDistr") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 d)))))

Get fixed point of linear transformation

Arguments

 :: Double Fixed point -> Double Scale parameter -> d Distribution -> LinearTransform d

Apply linear transformation to distribution.