- data Triangular a = Triangular {}
- realFloatTriangular :: (Floating a, Ord a, Distribution StdUniform a) => a -> a -> a -> RVar a
- realFloatTriangularCDF :: 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.
(RealFrac a, Distribution Triangular a) => CDF Triangular a | |
(RealFloat a, Ord a, Distribution StdUniform a) => Distribution Triangular a | |
Eq a => Eq (Triangular a) | |
Show a => Show (Triangular a) |
realFloatTriangular :: (Floating a, Ord a, Distribution StdUniform a) => a -> a -> a -> RVar aSource
Compute a triangular distribution for a Fractional
type. The name is
a historical accident and may change in the future.
realFloatTriangularCDF :: RealFrac a => a -> a -> a -> a -> DoubleSource
realFloatTriangularCDF a b c
is the CDF of realFloatTriangular a b c
.