Class PhaseTypePar
java.lang.Object
random.AbstractParameter
random.PhaseTypePar
This is the parameter that should be passed to the Phase-Type
distribution.
Copyright (c) 2017
Imperial College London - Department of Computing
Copyright (c) 2017
Imperial College London - Department of Computing
- Author:
- Lulai Zhu
-
Constructor Summary
ConstructorsConstructorDescriptionPhaseTypePar(Object[] alpha, Object[] T) It creates a new phase-type parameter based on the data provided by the user. -
Method Summary
Modifier and TypeMethodDescriptiondouble[]getAlpha()It returns the value of the parameter alpha, the initial probability vector of the phase-type distribution.double[]It returns the value of the parameter lambda, the completion rate vector of the phase-type distribution.doublegetMean()It returns the value of the mean of the phase-type distribution which is provided by the user or evaluated according to other data.double[][]getP()It returns the value of the parameter P, the transition probability matrix of the phase-type distribution.doublegetVar()It returns the value of the variance of the phase-type distribution which is provided by the user or evaluated according to other data.Methods inherited from class AbstractParameter
check, setMean
-
Constructor Details
-
PhaseTypePar
It creates a new phase-type parameter based on the data provided by the user.- Parameters:
alpha- 2D array of Object containing the initial probability vector.T- 2D array of Object containing the transition rate matrix.- Throws:
IncorrectDistributionParameterException- if alpha or T is incorrect or if alpha and T are inconsistent.
-
-
Method Details
-
getMean
public double getMean()It returns the value of the mean of the phase-type distribution which is provided by the user or evaluated according to other data.- Returns:
- double with the mean of the phase-type distribution.
-
getVar
public double getVar()It returns the value of the variance of the phase-type distribution which is provided by the user or evaluated according to other data.- Returns:
- double with the variance of the phase-type distribution.
-
getAlpha
public double[] getAlpha()It returns the value of the parameter alpha, the initial probability vector of the phase-type distribution.- Returns:
- array of double with alpha the initial probability vector of the phase-type distribution.
-
getLambda
public double[] getLambda()It returns the value of the parameter lambda, the completion rate vector of the phase-type distribution.- Returns:
- array of double with lambda the completion rate vector of the phase-type distribution.
-
getP
public double[][] getP()It returns the value of the parameter P, the transition probability matrix of the phase-type distribution.- Returns:
- 2D array of double with P the transition probability matrix of the phase-type distribution.
-