Package jline.lib.butools.ph
Class IntervalPdfFromPHKt
-
- All Implemented Interfaces:
public final class IntervalPdfFromPHKt
-
-
Method Summary
Modifier and Type Method Description final static Pair<DoubleArray, DoubleArray>intervalPdfFromPH(Matrix alpha, Matrix A, DoubleArray intBounds)Returns the approximate probability density function of a continuous phase-type distribution, based on the probability of falling into intervals. final static Pair<DoubleArray, DoubleArray>intervalPdfFromME(Matrix alpha, Matrix A, DoubleArray intBounds)Returns the approximate probability density function of a matrix-exponential distribution, based on the probability of falling into intervals. -
-
Method Detail
-
intervalPdfFromPH
final static Pair<DoubleArray, DoubleArray> intervalPdfFromPH(Matrix alpha, Matrix A, DoubleArray intBounds)
Returns the approximate probability density function of a continuous phase-type distribution, based on the probability of falling into intervals.
The interval pdf is computed as the probability of falling into an interval divided by the interval length.
- Parameters:
alpha- Initial probability vector of the phase-type distribution (shape 1 x M)A- Transient generator matrix of the phase-type distribution (shape M x M)intBounds- The array of interval boundaries.- Returns:
A pair of (x, y) where x contains the midpoints of the intervals and y contains the interval pdf values.
Notes: This method is more suitable for comparisons with empirical density functions than the exact one (given by PdfFromPH).
-
intervalPdfFromME
final static Pair<DoubleArray, DoubleArray> intervalPdfFromME(Matrix alpha, Matrix A, DoubleArray intBounds)
Returns the approximate probability density function of a matrix-exponential distribution, based on the probability of falling into intervals.
This is equivalent to intervalPdfFromPH for ME distributions.
-
-
-
-