Package jline.lib.butools.dph
Class MomentsFromDPH
java.lang.Object
jline.lib.butools.dph.MomentsFromDPH
-
Method Summary
Modifier and TypeMethodDescriptionstatic double[]momentsFromDPH(double[] alpha, Matrix A) static double[]momentsFromDPH(double[] alpha, Matrix A, int K) Overload for double[] alpha.static double[]momentsFromDPH(Matrix alpha, Matrix A) static double[]momentsFromDPH(Matrix alpha, Matrix A, int K) Returns the first K moments of a discrete phase-type distribution.
-
Method Details
-
momentsFromDPH
Returns the first K moments of a discrete phase-type distribution.- Parameters:
alpha- The initial probability vector of the discrete phase-type distribution. The sum of the entries of alpha is less or equal to 1.A- The transient generator matrix of the discrete phase-type distribution.K- Number of moments to compute. If K=0, 2*M-1 moments are computed. The default value is 0.- Returns:
- The vector of moments.
-
momentsFromDPH
-
momentsFromDPH
Overload for double[] alpha. -
momentsFromDPH
-