Package jline.lib.butools.dph
Class RandomDPHKt
-
- All Implemented Interfaces:
public final class RandomDPHKt
-
-
Method Summary
-
-
Method Detail
-
randomDPH
final static MGRepresentation randomDPH(Integer order, Double mean, Integer zeroEntries, Integer maxTrials, Double prec, Random random)
Returns a random discrete phase-type distribution with a given mean value.
- Parameters:
order- The size of the discrete phase-type distributionmean- The mean of the discrete phase-type distribution (default 10.zeroEntries- The number of zero entries in the initial vector, generator matrix and closing vector (default 0)maxTrials- The maximum number of trials to find a proper DPH (default 1000)prec- Numerical precision for checking the irreducibility (default 1e-7)random- Random number generator (optional, defaults to a new Random instance)- Returns:
The DPH2Representation or DPH3Representation containing alpha (initial probability vector) and A (transition probability matrix)
Note: If the procedure fails, try to increase the 'maxTrials' parameter, or increase the mean value.
-
-
-
-