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

Copyright | (C) 2012 Edward Kmett,
License | BSD-style (see the file LICENSE)
Maintainer | Edward Kmett <ekmett@gmail.com>
Stability | provisional
Portability | DeriveDataTypeable
Safe Haskell | None
Language | Haskell98

Statistics.Distribution.Beta

Contents

- Constructor
- Accessors

Description

Synopsis

- data BetaDistribution
- betaDistr :: Double -> Double -> BetaDistribution
- improperBetaDistr :: Double -> Double -> BetaDistribution
- bdAlpha :: BetaDistribution -> Double
- bdBeta :: BetaDistribution -> Double

# Documentation

data BetaDistribution #

The beta distribution

Instances

Eq BetaDistribution # |
Methods (==) :: BetaDistribution -> BetaDistribution -> Bool # (/=) :: BetaDistribution -> BetaDistribution -> Bool #
Data BetaDistribution # |
Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> BetaDistribution -> c BetaDistribution # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c BetaDistribution # toConstr :: BetaDistribution -> Constr # dataTypeOf :: BetaDistribution -> DataType # dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c BetaDistribution) # dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c BetaDistribution) # gmapT :: (forall b. Data b => b -> b) -> BetaDistribution -> BetaDistribution # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> BetaDistribution -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> BetaDistribution -> r # gmapQ :: (forall d. Data d => d -> u) -> BetaDistribution -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> BetaDistribution -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> BetaDistribution -> m BetaDistribution # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> BetaDistribution -> m BetaDistribution # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> BetaDistribution -> m BetaDistribution #
Read BetaDistribution # |
Methods readsPrec :: Int -> ReadS BetaDistribution # readList :: ReadS [BetaDistribution] # readPrec :: ReadPrec BetaDistribution # readListPrec :: ReadPrec [BetaDistribution] #
Show BetaDistribution # |
Methods showsPrec :: Int -> BetaDistribution -> ShowS # show :: BetaDistribution -> String # showList :: [BetaDistribution] -> ShowS #
Generic BetaDistribution # |
Associated Types type Rep BetaDistribution :: * -> * # Methods from :: BetaDistribution -> Rep BetaDistribution x # to :: Rep BetaDistribution x -> BetaDistribution #
FromJSON BetaDistribution # |
Methods parseJSON :: Value -> Parser BetaDistribution # parseJSONList :: Value -> Parser [BetaDistribution] #
ToJSON BetaDistribution # |
Methods toJSON :: BetaDistribution -> Value # toEncoding :: BetaDistribution -> Encoding # toJSONList :: [BetaDistribution] -> Value # toEncodingList :: [BetaDistribution] -> Encoding #
Binary BetaDistribution # |
Methods put :: BetaDistribution -> Put # get :: Get BetaDistribution # putList :: [BetaDistribution] -> Put #
ContGen BetaDistribution # |
Methods genContVar :: PrimMonad m => BetaDistribution -> Gen (PrimState m) -> m Double #
Entropy BetaDistribution # |
Methods entropy :: BetaDistribution -> Double #
MaybeEntropy BetaDistribution # |
Methods maybeEntropy :: BetaDistribution -> Maybe Double #
Variance BetaDistribution # |
Methods variance :: BetaDistribution -> Double # stdDev :: BetaDistribution -> Double #
MaybeVariance BetaDistribution # |
Methods maybeVariance :: BetaDistribution -> Maybe Double # maybeStdDev :: BetaDistribution -> Maybe Double #
Mean BetaDistribution # |
Methods mean :: BetaDistribution -> Double #
MaybeMean BetaDistribution # |
Methods maybeMean :: BetaDistribution -> Maybe Double #
ContDistr BetaDistribution # |
Methods density :: BetaDistribution -> Double -> Double # quantile :: BetaDistribution -> Double -> Double # logDensity :: BetaDistribution -> Double -> Double #
Distribution BetaDistribution # |
Methods cumulative :: BetaDistribution -> Double -> Double # complCumulative :: BetaDistribution -> Double -> Double #
type Rep BetaDistribution # |
type Rep BetaDistribution = D1 (MetaData "BetaDistribution" "Statistics.Distribution.Beta" "statistics-0.13.3.0-LGqAKLOG2BiECOKTeBVRge" False) (C1 (MetaCons "BD" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "bdAlpha") SourceUnpack SourceStrict DecidedUnpack) (Rec0 Double)) (S1 (MetaSel (Just Symbol "bdBeta") SourceUnpack SourceStrict DecidedUnpack) (Rec0 Double))))

# Constructor

betaDistr #

Arguments

:: Double | Shape parameter alpha
-> Double | Shape parameter beta
-> BetaDistribution |

Create beta distribution. Both shape parameters must be positive.

improperBetaDistr #

Arguments

:: Double | Shape parameter alpha
-> Double | Shape parameter beta
-> BetaDistribution |

Create beta distribution. This construtor doesn't check parameters.

# Accessors

bdAlpha :: BetaDistribution -> Double #

Alpha shape parameter

bdBeta :: BetaDistribution -> Double #

Beta shape parameter