Class RandomDPHKt

  • All Implemented Interfaces:

    
    public final class RandomDPHKt
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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 distribution
        mean - 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.