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

Copyright | (c) 2011 Aleksey Khudyakov
License | BSD3
Maintainer | bos@serpentine.com
Stability | experimental
Portability | portable
Safe Haskell | None
Language | Haskell2010

Statistics.Distribution.Uniform

Contents

- Constructors
  - Accessors

Description

Variate distributed uniformly in the interval.

Synopsis

- data UniformDistribution
- uniformDistr :: Double -> Double -> UniformDistribution
- uniformDistrE :: Double -> Double -> Maybe UniformDistribution
- uniformA :: UniformDistribution -> Double
- uniformB :: UniformDistribution -> Double

# Documentation

data UniformDistribution #

Uniform distribution from A to B

#### Instances

Instances details

FromJSON UniformDistribution # |
Instance details Defined in Statistics.Distribution.Uniform Methods parseJSON :: Value -> Parser UniformDistribution # parseJSONList :: Value -> Parser [UniformDistribution] # omittedField :: Maybe UniformDistribution #
ToJSON UniformDistribution # |
Instance details Defined in Statistics.Distribution.Uniform Methods toJSON :: UniformDistribution -> Value # toEncoding :: UniformDistribution -> Encoding # toJSONList :: [UniformDistribution] -> Value # toEncodingList :: [UniformDistribution] -> Encoding # omitField :: UniformDistribution -> Bool #
Binary UniformDistribution # |
Instance details Defined in Statistics.Distribution.Uniform Methods put :: UniformDistribution -> Put # get :: Get UniformDistribution # putList :: [UniformDistribution] -> Put #
Data UniformDistribution # |

Instance details

Defined in Statistics.Distribution.Uniform

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UniformDistribution -> c UniformDistribution #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UniformDistribution #

toConstr :: UniformDistribution -> Constr #

dataTypeOf :: UniformDistribution -> DataType #

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

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

gmapT :: (forall b. Data b => b -> b) -> UniformDistribution -> UniformDistribution #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UniformDistribution -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UniformDistribution -> r #

gmapQ :: (forall d. Data d => d -> u) -> UniformDistribution -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UniformDistribution -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UniformDistribution -> m UniformDistribution #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UniformDistribution -> m UniformDistribution #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UniformDistribution -> m UniformDistribution #

Generic UniformDistribution # |

Instance details

Defined in Statistics.Distribution.Uniform

Associated Types

type Rep UniformDistribution |

Instance details

Defined in Statistics.Distribution.Uniform

type Rep UniformDistribution = D1 ('MetaData "UniformDistribution" "Statistics.Distribution.Uniform" "statistics-0.16.3.0-JhFVwN7Kv9y2XSvDlj54t" 'False) (C1 ('MetaCons "UniformDistribution" 'PrefixI 'True) (S1 ('MetaSel ('Just "uniformA") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "uniformB") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Double)))

Methods

from :: UniformDistribution -> Rep UniformDistribution x #

to :: Rep UniformDistribution x -> UniformDistribution #

Read UniformDistribution # |
Instance details Defined in Statistics.Distribution.Uniform Methods readsPrec :: Int -> ReadS UniformDistribution # readList :: ReadS [UniformDistribution] # readPrec :: ReadPrec UniformDistribution # readListPrec :: ReadPrec [UniformDistribution] #
Show UniformDistribution # |
Instance details Defined in Statistics.Distribution.Uniform Methods showsPrec :: Int -> UniformDistribution -> ShowS # show :: UniformDistribution -> String # showList :: [UniformDistribution] -> ShowS #
Eq UniformDistribution # |
Instance details Defined in Statistics.Distribution.Uniform Methods (==) :: UniformDistribution -> UniformDistribution -> Bool # (/=) :: UniformDistribution -> UniformDistribution -> Bool #
ContDistr UniformDistribution # |
Instance details Defined in Statistics.Distribution.Uniform Methods density :: UniformDistribution -> Double -> Double # logDensity :: UniformDistribution -> Double -> Double # quantile :: UniformDistribution -> Double -> Double # complQuantile :: UniformDistribution -> Double -> Double #
ContGen UniformDistribution # |
Instance details Defined in Statistics.Distribution.Uniform Methods genContVar :: StatefulGen g m => UniformDistribution -> g -> m Double #
Distribution UniformDistribution # |
Instance details Defined in Statistics.Distribution.Uniform Methods cumulative :: UniformDistribution -> Double -> Double # complCumulative :: UniformDistribution -> Double -> Double #
Entropy UniformDistribution # |
Instance details Defined in Statistics.Distribution.Uniform Methods entropy :: UniformDistribution -> Double #
MaybeEntropy UniformDistribution # |
Instance details Defined in Statistics.Distribution.Uniform Methods maybeEntropy :: UniformDistribution -> Maybe Double #
MaybeMean UniformDistribution # |
Instance details Defined in Statistics.Distribution.Uniform Methods maybeMean :: UniformDistribution -> Maybe Double #
MaybeVariance UniformDistribution # |
Instance details Defined in Statistics.Distribution.Uniform Methods maybeVariance :: UniformDistribution -> Maybe Double # maybeStdDev :: UniformDistribution -> Maybe Double #
Mean UniformDistribution # |
Instance details Defined in Statistics.Distribution.Uniform Methods mean :: UniformDistribution -> Double #
Variance UniformDistribution # |
Instance details Defined in Statistics.Distribution.Uniform Methods variance :: UniformDistribution -> Double # stdDev :: UniformDistribution -> Double #
type Rep UniformDistribution # |

Instance details

Defined in Statistics.Distribution.Uniform

type Rep UniformDistribution = D1 ('MetaData "UniformDistribution" "Statistics.Distribution.Uniform" "statistics-0.16.3.0-JhFVwN7Kv9y2XSvDlj54t" 'False) (C1 ('MetaCons "UniformDistribution" 'PrefixI 'True) (S1 ('MetaSel ('Just "uniformA") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "uniformB") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Double)))

# Constructors

uniformDistr :: Double -> Double -> UniformDistribution #

Create uniform distribution.

uniformDistrE :: Double -> Double -> Maybe UniformDistribution #

Create uniform distribution.

## Accessors

uniformA :: UniformDistribution -> Double #

Low boundary of distribution

uniformB :: UniformDistribution -> Double #

Upper boundary of distribution