statistics-0.16.2.1: 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 | Safe-Inferred
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 Source #

Uniform distribution from A to B

#### Instances

Instances details

FromJSON UniformDistribution Source # |
Instance details Defined in Statistics.Distribution.Uniform Methods parseJSON :: Value -> Parser UniformDistribution Source # parseJSONList :: Value -> Parser [UniformDistribution] Source #
ToJSON UniformDistribution Source # |
Instance details Defined in Statistics.Distribution.Uniform Methods toJSON :: UniformDistribution -> Value Source # toEncoding :: UniformDistribution -> Encoding Source # toJSONList :: [UniformDistribution] -> Value Source # toEncodingList :: [UniformDistribution] -> Encoding Source #
Data UniformDistribution Source # |

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 Source #

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

toConstr :: UniformDistribution -> Constr Source #

dataTypeOf :: UniformDistribution -> DataType Source #

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

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

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

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

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

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

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

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

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

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

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

Instance details

Defined in Statistics.Distribution.Uniform

type Rep UniformDistribution = D1 ('MetaData "UniformDistribution" "Statistics.Distribution.Uniform" "statistics-0.16.2.1-An1XEEv5tKOFj5G6JDoeTv" '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 Source #

Create uniform distribution.

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

Create uniform distribution.

## Accessors

uniformA :: UniformDistribution -> Double Source #

Low boundary of distribution

uniformB :: UniformDistribution -> Double Source #

Upper boundary of distribution