Package jline.lib.butools.ph
Class IntervalPdfFromPH
java.lang.Object
jline.lib.butools.ph.IntervalPdfFromPH
-
Method Summary
Modifier and TypeMethodDescriptionstatic Pair<double[], double[]> intervalPdfFromME(Matrix alpha, Matrix A, double[] intBounds) Returns the approximate probability density function of a matrix-exponential distribution, based on the probability of falling into intervals.static Pair<double[], double[]> intervalPdfFromPH(Matrix alpha, Matrix A, double[] intBounds) Returns the approximate probability density function of a continuous phase-type distribution, based on the probability of falling into intervals.
-
Method Details
-
intervalPdfFromPH
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. The pdf is the probability of falling into an interval divided by the interval length. If the size of intBounds is K, the size of the result is K-1.- Returns:
- A pair of (x, y) where x contains the midpoints of the intervals and y contains the interval pdf values.
-
intervalPdfFromME
Returns the approximate probability density function of a matrix-exponential distribution, based on the probability of falling into intervals. Equivalent to intervalPdfFromPH for ME distributions.
-