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

Statistics.Distribution.Transform

Description

Transformations over distributions

Synopsis

# Documentation

Linear transformation applied to distribution.

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

Constructors

 LinearTransform FieldslinTransLocation :: !DoubleLocation parameter.linTransScale :: !DoubleScale parameter.linTransDistr :: dDistribution being transformed.
Instances
 Source # Instance detailsDefined in Statistics.Distribution.Transform Methodsfmap :: (a -> b) -> LinearTransform a -> LinearTransform b #(<\$) :: a -> LinearTransform b -> LinearTransform a # Eq d => Eq (LinearTransform d) Source # Instance detailsDefined in Statistics.Distribution.Transform Methods(==) :: LinearTransform d -> LinearTransform d -> Bool #(/=) :: LinearTransform d -> LinearTransform d -> Bool # Data d => Data (LinearTransform d) Source # Instance detailsDefined in Statistics.Distribution.Transform Methodsgfoldl :: (forall d0 b. Data d0 => c (d0 -> b) -> d0 -> 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 d0. Data d0 => c (t d0)) -> Maybe (c (LinearTransform d)) #dataCast2 :: Typeable t => (forall d0 e. (Data d0, Data e) => c (t d0 e)) -> Maybe (c (LinearTransform d)) #gmapT :: (forall b. Data b => b -> b) -> LinearTransform d -> LinearTransform d #gmapQl :: (r -> r' -> r) -> r -> (forall d0. Data d0 => d0 -> r') -> LinearTransform d -> r #gmapQr :: (r' -> r -> r) -> r -> (forall d0. Data d0 => d0 -> r') -> LinearTransform d -> r #gmapQ :: (forall d0. Data d0 => d0 -> u) -> LinearTransform d -> [u] #gmapQi :: Int -> (forall d0. Data d0 => d0 -> u) -> LinearTransform d -> u #gmapM :: Monad m => (forall d0. Data d0 => d0 -> m d0) -> LinearTransform d -> m (LinearTransform d) #gmapMp :: MonadPlus m => (forall d0. Data d0 => d0 -> m d0) -> LinearTransform d -> m (LinearTransform d) #gmapMo :: MonadPlus m => (forall d0. Data d0 => d0 -> m d0) -> LinearTransform d -> m (LinearTransform d) # Read d => Read (LinearTransform d) Source # Instance detailsDefined in Statistics.Distribution.Transform Methods Show d => Show (LinearTransform d) Source # Instance detailsDefined in Statistics.Distribution.Transform MethodsshowList :: [LinearTransform d] -> ShowS # Source # Instance detailsDefined in Statistics.Distribution.Transform Associated Typestype Rep (LinearTransform d) :: Type -> Type # Methodsfrom :: LinearTransform d -> Rep (LinearTransform d) x #to :: Rep (LinearTransform d) x -> LinearTransform d # ToJSON d => ToJSON (LinearTransform d) Source # Instance detailsDefined in Statistics.Distribution.Transform MethodstoJSONList :: [LinearTransform d] -> Value # Source # Instance detailsDefined in Statistics.Distribution.Transform Methods Binary d => Binary (LinearTransform d) Source # Instance detailsDefined in Statistics.Distribution.Transform Methodsput :: LinearTransform d -> Put #putList :: [LinearTransform d] -> Put # Source # Instance detailsDefined in Statistics.Distribution.Transform MethodsgenContVar :: PrimMonad m => LinearTransform d -> Gen (PrimState m) -> m Double Source # Source # Instance detailsDefined in Statistics.Distribution.Transform Methods Source # Instance detailsDefined in Statistics.Distribution.Transform Methods Source # Instance detailsDefined in Statistics.Distribution.Transform Methods Source # Instance detailsDefined in Statistics.Distribution.Transform Methods Mean d => Mean (LinearTransform d) Source # Instance detailsDefined in Statistics.Distribution.Transform Methods Source # Instance detailsDefined in Statistics.Distribution.Transform Methods Source # Instance detailsDefined in Statistics.Distribution.Transform Methods Source # Instance detailsDefined in Statistics.Distribution.Transform Methods type Rep (LinearTransform d) Source # Instance detailsDefined in Statistics.Distribution.Transform type Rep (LinearTransform d) = D1 (MetaData "LinearTransform" "Statistics.Distribution.Transform" "statistics-0.15.1.0-AChUCcje50v7tXqdowPsvy" False) (C1 (MetaCons "LinearTransform" PrefixI True) (S1 (MetaSel (Just "linTransLocation") SourceUnpack SourceStrict DecidedStrict) (Rec0 Double) :*: (S1 (MetaSel (Just "linTransScale") SourceUnpack SourceStrict DecidedStrict) (Rec0 Double) :*: S1 (MetaSel (Just "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.