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

Uniform distribution from A to B

Instances

Eq UniformDistribution Source # |
Methods (==) :: UniformDistribution -> UniformDistribution -> Bool # (/=) :: UniformDistribution -> UniformDistribution -> Bool #
Data UniformDistribution Source # |

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 Source # |
Methods readsPrec :: Int -> ReadS UniformDistribution # readList :: ReadS [UniformDistribution] # readPrec :: ReadPrec UniformDistribution # readListPrec :: ReadPrec [UniformDistribution] #
Show UniformDistribution Source # |
Methods showsPrec :: Int -> UniformDistribution -> ShowS # show :: UniformDistribution -> String # showList :: [UniformDistribution] -> ShowS #
Generic UniformDistribution Source # |
Associated Types type Rep UniformDistribution :: * -> * # Methods from :: UniformDistribution -> Rep UniformDistribution x # to :: Rep UniformDistribution x -> UniformDistribution #
ToJSON UniformDistribution Source # |
Methods toJSON :: UniformDistribution -> Value # toEncoding :: UniformDistribution -> Encoding # toJSONList :: [UniformDistribution] -> Value # toEncodingList :: [UniformDistribution] -> Encoding #
FromJSON UniformDistribution Source # |
Methods parseJSON :: Value -> Parser UniformDistribution # parseJSONList :: Value -> Parser [UniformDistribution] #
Binary UniformDistribution Source # |
Methods put :: UniformDistribution -> Put # get :: Get UniformDistribution # putList :: [UniformDistribution] -> Put #
ContGen UniformDistribution Source # |
Methods genContVar :: PrimMonad m => UniformDistribution -> Gen (PrimState m) -> m Double Source #
Entropy UniformDistribution Source # |
Methods entropy :: UniformDistribution -> Double Source #
MaybeEntropy UniformDistribution Source # |
Methods maybeEntropy :: UniformDistribution -> Maybe Double Source #
Variance UniformDistribution Source # |
Methods variance :: UniformDistribution -> Double Source # stdDev :: UniformDistribution -> Double Source #
MaybeVariance UniformDistribution Source # |
Methods maybeVariance :: UniformDistribution -> Maybe Double Source # maybeStdDev :: UniformDistribution -> Maybe Double Source #
Mean UniformDistribution Source # |
Methods mean :: UniformDistribution -> Double Source #
MaybeMean UniformDistribution Source # |
Methods maybeMean :: UniformDistribution -> Maybe Double Source #
ContDistr UniformDistribution Source # |
Methods density :: UniformDistribution -> Double -> Double Source # quantile :: UniformDistribution -> Double -> Double Source # logDensity :: UniformDistribution -> Double -> Double Source #
Distribution UniformDistribution Source # |
Methods cumulative :: UniformDistribution -> Double -> Double Source # complCumulative :: UniformDistribution -> Double -> Double Source #
type Rep UniformDistribution Source # |
type Rep UniformDistribution = D1 (MetaData "UniformDistribution" "Statistics.Distribution.Uniform" "statistics-0.13.3.0-Fvkducafmyw9ljEnBhS6Nm" 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 Source #

Create uniform distribution.

## Accessors

uniformA :: UniformDistribution -> Double Source #

Low boundary of distribution

uniformB :: UniformDistribution -> Double Source #

Upper boundary of distribution