Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Triangular a = Triangular {}
- floatingTriangular :: (Floating a, Ord a, Distribution StdUniform a) => a -> a -> a -> RVarT m a
- triangularCDF :: RealFrac a => a -> a -> a -> a -> Double
Documentation
data Triangular a Source #
A description of a triangular distribution - a distribution whose PDF is a triangle ramping up from a lower bound to a specified midpoint and back down to the upper bound. This is a very simple distribution that does not generally occur naturally but is used sometimes as an estimate of a true distribution when only the range of the values and an approximate mode of the true distribution are known.
Instances
(RealFrac a, Distribution Triangular a) => CDF Triangular a Source # | |
Defined in Data.Random.Distribution.Triangular cdf :: Triangular a -> a -> Double Source # | |
(RealFloat a, Ord a, Distribution StdUniform a) => Distribution Triangular a Source # | |
Defined in Data.Random.Distribution.Triangular rvar :: Triangular a -> RVar a Source # rvarT :: Triangular a -> RVarT n a Source # | |
Eq a => Eq (Triangular a) Source # | |
Defined in Data.Random.Distribution.Triangular (==) :: Triangular a -> Triangular a -> Bool # (/=) :: Triangular a -> Triangular a -> Bool # | |
Show a => Show (Triangular a) Source # | |
Defined in Data.Random.Distribution.Triangular showsPrec :: Int -> Triangular a -> ShowS # show :: Triangular a -> String # showList :: [Triangular a] -> ShowS # |
floatingTriangular :: (Floating a, Ord a, Distribution StdUniform a) => a -> a -> a -> RVarT m a Source #
Compute a triangular distribution for a Floating
type.
triangularCDF :: RealFrac a => a -> a -> a -> a -> Double Source #
triangularCDF a b c
is the CDF of realFloatTriangular a b c
.