Copyright | Predictable Network Solutions Ltd. 2020-2024 |
---|---|
License | BSD-3-Clause |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
DeltaQ.PiecewisePolynomial
Contents
Description
is a probability distribution of completion time
using the numeric type DQ
Rational
.
This type represents a mixed discrete / continuous probability distribution
where the continuous part is represented in terms of piecewise polynomials.
Type
Probability distribution of durations.
Instances
Show DQ Source # | |
NFData DQ Source # | |
Defined in DeltaQ.PiecewisePolynomial | |
DeltaQ DQ Source # | |
Defined in DeltaQ.PiecewisePolynomial Associated Types type Probability DQ Source # Methods choice :: Probability DQ -> DQ -> DQ -> DQ Source # choices :: [(Probability DQ, DQ)] -> DQ Source # uniform :: Duration DQ -> Duration DQ -> DQ Source # failure :: DQ -> Probability DQ Source # successWithin :: DQ -> Duration DQ -> Probability DQ Source # quantile :: DQ -> Probability DQ -> Eventually (Duration DQ) Source # | |
Outcome DQ Source # | |
Defined in DeltaQ.PiecewisePolynomial | |
Eq DQ Source # | |
PartialOrd DQ Source # | Partial order of cumulative distribution functions.
x `leq` y <=> ∀ t. successWithin x t >= successWithin y t |
type Duration DQ Source # | |
Defined in DeltaQ.PiecewisePolynomial | |
type Probability DQ Source # | |
Defined in DeltaQ.PiecewisePolynomial |
distribution :: DQ -> Piecewise (Poly Rational) Source #
Get the distribution function as piecewise function of polynomials.
unsafeFromPositiveMeasure :: Measure Rational -> DQ Source #
Interpret a finite, positive Measure
as a probability distribution.
The precondition that the measure is positive is not checked!
Operations
meetsQTA :: DQ -> DQ -> Bool Source #
Test whether the given probability distribution of completion times is equal to or better than a given quantitative timeliness agreement (QTA).
Synonym for leq
of the partial order,
p `meetsQTA` qta = p `leq` qta
The first four commonly used moments of a probability distribution.
Constructors
Moments | |
Fields
|
Internal
complexity :: DQ -> Int Source #
Size of the representation of a probability distribution, i.e. number of pieces of the piecewise function and degrees of the polynomials.
This quantity is relevant to stating and analyzing the asymptotic time complexity of operations.