statistics-0.16.1.2: A library of statistical types, data, and functions
Copyright (c) 2013 John McDonnell;
License BSD3
Maintainer bos@serpentine.com
Stability experimental
Portability portable
Safe Haskell None
Language Haskell2010

Statistics.Distribution.Transform

Description

Transformations over distributions

Synopsis

Documentation

data LinearTransform d Source #

Linear transformation applied to distribution.

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

Constructors

LinearTransform

Fields

Instances

Instances details
Functor LinearTransform Source #
Instance details

Defined in Statistics.Distribution.Transform

Eq d => Eq ( LinearTransform d) Source #
Instance details

Defined in Statistics.Distribution.Transform

Data d => Data ( LinearTransform d) Source #
Instance details

Defined in Statistics.Distribution.Transform

Methods

gfoldl :: ( forall d0 b. Data d0 => c (d0 -> b) -> d0 -> c b) -> ( forall g. g -> c g) -> LinearTransform d -> c ( LinearTransform d) Source #

gunfold :: ( forall b r. Data b => c (b -> r) -> c r) -> ( forall r. r -> c r) -> Constr -> c ( LinearTransform d) Source #

toConstr :: LinearTransform d -> Constr Source #

dataTypeOf :: LinearTransform d -> DataType Source #

dataCast1 :: Typeable t => ( forall d0. Data d0 => c (t d0)) -> Maybe (c ( LinearTransform d)) Source #

dataCast2 :: Typeable t => ( forall d0 e. ( Data d0, Data e) => c (t d0 e)) -> Maybe (c ( LinearTransform d)) Source #

gmapT :: ( forall b. Data b => b -> b) -> LinearTransform d -> LinearTransform d Source #

gmapQl :: (r -> r' -> r) -> r -> ( forall d0. Data d0 => d0 -> r') -> LinearTransform d -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> ( forall d0. Data d0 => d0 -> r') -> LinearTransform d -> r Source #

gmapQ :: ( forall d0. Data d0 => d0 -> u) -> LinearTransform d -> [u] Source #

gmapQi :: Int -> ( forall d0. Data d0 => d0 -> u) -> LinearTransform d -> u Source #

gmapM :: Monad m => ( forall d0. Data d0 => d0 -> m d0) -> LinearTransform d -> m ( LinearTransform d) Source #

gmapMp :: MonadPlus m => ( forall d0. Data d0 => d0 -> m d0) -> LinearTransform d -> m ( LinearTransform d) Source #

gmapMo :: MonadPlus m => ( forall d0. Data d0 => d0 -> m d0) -> LinearTransform d -> m ( LinearTransform d) Source #

Read d => Read ( LinearTransform d) Source #
Instance details

Defined in Statistics.Distribution.Transform

Show d => Show ( LinearTransform d) Source #
Instance details

Defined in Statistics.Distribution.Transform

Generic ( LinearTransform d) Source #
Instance details

Defined in Statistics.Distribution.Transform

ToJSON d => ToJSON ( LinearTransform d) Source #
Instance details

Defined in Statistics.Distribution.Transform

FromJSON d => FromJSON ( LinearTransform d) Source #
Instance details

Defined in Statistics.Distribution.Transform

Binary d => Binary ( LinearTransform d) Source #
Instance details

Defined in Statistics.Distribution.Transform

ContGen d => ContGen ( LinearTransform d) Source #
Instance details

Defined in Statistics.Distribution.Transform

Entropy d => Entropy ( LinearTransform d) Source #
Instance details

Defined in Statistics.Distribution.Transform

MaybeEntropy d => MaybeEntropy ( LinearTransform d) Source #
Instance details

Defined in Statistics.Distribution.Transform

Variance d => Variance ( LinearTransform d) Source #
Instance details

Defined in Statistics.Distribution.Transform

MaybeVariance d => MaybeVariance ( LinearTransform d) Source #
Instance details

Defined in Statistics.Distribution.Transform

Mean d => Mean ( LinearTransform d) Source #
Instance details

Defined in Statistics.Distribution.Transform

MaybeMean d => MaybeMean ( LinearTransform d) Source #
Instance details

Defined in Statistics.Distribution.Transform

ContDistr d => ContDistr ( LinearTransform d) Source #
Instance details

Defined in Statistics.Distribution.Transform

Distribution d => Distribution ( LinearTransform d) Source #
Instance details

Defined in Statistics.Distribution.Transform

type Rep ( LinearTransform d) Source #
Instance details

Defined in Statistics.Distribution.Transform

type Rep ( LinearTransform d) = D1 (' MetaData "LinearTransform" "Statistics.Distribution.Transform" "statistics-0.16.1.2-IkOne9g3oJ1vhHVSRLPUO" ' 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))))

linTransFixedPoint :: LinearTransform d -> Double Source #

Get fixed point of linear transformation

scaleAround Source #

Arguments

:: Double

Fixed point

-> Double

Scale parameter

-> d

Distribution

-> LinearTransform d

Apply linear transformation to distribution.