Statistics.Distribution.Uniform

statistics-0.13.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 | Haskell98

Statistics.Distribution.Uniform

Contents

- Constructors
  - Accessors

Description

Variate distributed uniformly in the interval.

Synopsis

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

# Documentation

data UniformDistribution #

Uniform distribution from A to B

Instances

Eq UniformDistribution # |
Methods (==) :: UniformDistribution -> UniformDistribution -> Bool # (/=) :: UniformDistribution -> UniformDistribution -> Bool #
Data UniformDistribution # |
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 :: (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 #
Read UniformDistribution # |
Methods readsPrec :: Int -> ReadS UniformDistribution # readList :: ReadS [UniformDistribution] # readPrec :: ReadPrec UniformDistribution # readListPrec :: ReadPrec [UniformDistribution] #
Show UniformDistribution # |
Methods showsPrec :: Int -> UniformDistribution -> ShowS # show :: UniformDistribution -> String # showList :: [UniformDistribution] -> ShowS #
Generic UniformDistribution # |
Associated Types type Rep UniformDistribution :: * -> * # Methods from :: UniformDistribution -> Rep UniformDistribution x # to :: Rep UniformDistribution x -> UniformDistribution #
ToJSON UniformDistribution # |
Methods toJSON :: UniformDistribution -> Value # toEncoding :: UniformDistribution -> Encoding #
FromJSON UniformDistribution # |
Methods parseJSON :: Value -> Parser UniformDistribution #
Binary UniformDistribution # |
Methods put :: UniformDistribution -> Put # get :: Get UniformDistribution # putList :: [UniformDistribution] -> Put #
ContGen UniformDistribution # |
Methods genContVar :: PrimMonad m => UniformDistribution -> Gen (PrimState m) -> m Double #
Entropy UniformDistribution # |
Methods entropy :: UniformDistribution -> Double #
MaybeEntropy UniformDistribution # |
Methods maybeEntropy :: UniformDistribution -> Maybe Double #
Variance UniformDistribution # |
Methods variance :: UniformDistribution -> Double # stdDev :: UniformDistribution -> Double #
MaybeVariance UniformDistribution # |
Methods maybeVariance :: UniformDistribution -> Maybe Double # maybeStdDev :: UniformDistribution -> Maybe Double #
Mean UniformDistribution # |
Methods mean :: UniformDistribution -> Double #
MaybeMean UniformDistribution # |
Methods maybeMean :: UniformDistribution -> Maybe Double #
ContDistr UniformDistribution # |
Methods density :: UniformDistribution -> Double -> Double # quantile :: UniformDistribution -> Double -> Double # logDensity :: UniformDistribution -> Double -> Double #
Distribution UniformDistribution # |
Methods cumulative :: UniformDistribution -> Double -> Double # complCumulative :: UniformDistribution -> Double -> Double #
type Rep UniformDistribution # |
type Rep UniformDistribution = D1 (MetaData "UniformDistribution" "Statistics.Distribution.Uniform" "statistics-0.13.3.0-116AMxscZNKCm819FAiSIF" False) (C1 (MetaCons "UniformDistribution" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "uniformA") SourceUnpack SourceStrict DecidedUnpack) (Rec0 Double)) (S1 (MetaSel (Just Symbol "uniformB") SourceUnpack SourceStrict DecidedUnpack) (Rec0 Double))))

# Constructors

uniformDistr :: Double -> Double -> UniformDistribution #

Create uniform distribution.

## Accessors

uniformA :: UniformDistribution -> Double #

Low boundary of distribution

uniformB :: UniformDistribution -> Double #

Upper boundary of distribution