Class Coxian

  • All Implemented Interfaces:
    java.io.Serializable , jline.lang.Copyable

    
    public class Coxian
    extends Markovian
                        

    A general Coxian distribution with n phases.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static Coxian fitCentral(double mean, double var, double skew)
      static Coxian fitMeanAndSCV(double mean, double var, double skew)
      static Coxian fitMeanAndSCV(double mean, double SCV)
      double evalCDF(double t) Evaluates the cumulative distribution function at the given point.
      double evalLST(double s) Evaluate the Laplace-Stieltjes Transform at s
      double getMean() Gets the mean of this Markovian distribution.
      Matrix getMu() Gets the diagonal rate matrix containing the negative diagonal elements of D0.
      long getNumberOfPhases() Gets the number of phases in this Markovian distribution.
      Matrix getPhi() Gets the exit probability vector (phi).
      double getRate() Gets the rate of this distribution (inverse of mean).
      double getSCV() Gets the squared coefficient of variation (SCV) of this distribution.
      double getSkewness() Gets the skewness of this distribution.
      double getVar() Gets the variance of this distribution.
      Array<double> sample(int n) Generates random samples from this distribution using default random generator.
      Array<double> sample(int n, Random random) Generates random samples from this distribution using the specified random generator.
      double mean() Kotlin-style property alias for getMean()
      double rate() Kotlin-style property alias for getRate()
      double scv() Kotlin-style property alias for getSCV()
      double skewness() Kotlin-style property alias for getSkewness()
      double var() Kotlin-style property alias for getVar()
      Matrix mu() Kotlin-style property alias for getMu()
      Matrix phi() Kotlin-style property alias for getPhi()
      long numberOfPhases() Kotlin-style property alias for getNumberOfPhases()
      long numPhases() Kotlin-style property alias for getNumberOfPhases()
      • Methods inherited from class jline.lang.processes.Markovian

        D, acf, embedded, embeddedProb, evalCDF, evalMeanT, evalVarT, getACF, getEmbedded, getEmbeddedProb, getIDC, getIDI, getInitProb, getMoments, getProcess, getSubgenerator, getVariance, idc, idi, initProb, moments, process, setMean, setProcess, setRate, subgenerator, variance
      • Methods inherited from class jline.lang.processes.Distribution

        evalProbInterval, getName, getNumParams, getParam, getSupport, isContinuous, isDisabled, isDiscrete, isImmediate, isMarkovian, name, numParams, param, setNumParams, setParam, support
      • Methods inherited from class jline.lang.Copyable

        copy
      • Methods inherited from class java.lang.Object

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

      • evalCDF

         double evalCDF(double t)

        Evaluates the cumulative distribution function at the given point.

        Parameters:
        t - the point at which to evaluate the CDF
        Returns:

        the CDF value at point t

      • evalLST

         double evalLST(double s)

        Evaluate the Laplace-Stieltjes Transform at s

        Parameters:
        s - the Laplace domain variable
        Returns:

        the LST value at s

      • getMean

         double getMean()

        Gets the mean of this Markovian distribution.

        Returns:

        the mean value, or NaN if the process contains NaN values

      • getMu

         Matrix getMu()

        Gets the diagonal rate matrix containing the negative diagonal elements of D0.

        Returns:

        column vector of rates

      • getNumberOfPhases

         long getNumberOfPhases()

        Gets the number of phases in this Markovian distribution.

        Returns:

        the number of phases

      • getPhi

         Matrix getPhi()

        Gets the exit probability vector (phi).

        Returns:

        column vector of exit probabilities for each phase

      • getRate

         double getRate()

        Gets the rate of this distribution (inverse of mean).

        Returns:

        the rate value (1/mean)

      • getSCV

         double getSCV()

        Gets the squared coefficient of variation (SCV) of this distribution. SCV = Var(X) / E[X]^2.

        Returns:

        the squared coefficient of variation

      • getSkewness

         double getSkewness()

        Gets the skewness of this distribution. Skewness measures the asymmetry of the probability distribution.

        Returns:

        the skewness value

      • getVar

         double getVar()

        Gets the variance of this distribution. Computed as SCV * mean^2.

        Returns:

        the variance

      • sample

         Array<double> sample(int n)

        Generates random samples from this distribution using default random generator.

        Parameters:
        n - the number of samples to generate
        Returns:

        array of random samples

      • sample

         Array<double> sample(int n, Random random)

        Generates random samples from this distribution using the specified random generator.

        Parameters:
        n - the number of samples to generate
        random - the random number generator to use
        Returns:

        array of random samples

      • mean

         double mean()

        Kotlin-style property alias for getMean()

      • rate

         double rate()

        Kotlin-style property alias for getRate()

      • scv

         double scv()

        Kotlin-style property alias for getSCV()

      • skewness

         double skewness()

        Kotlin-style property alias for getSkewness()

      • var

         double var()

        Kotlin-style property alias for getVar()

      • mu

         Matrix mu()

        Kotlin-style property alias for getMu()

      • phi

         Matrix phi()

        Kotlin-style property alias for getPhi()

      • numberOfPhases

         long numberOfPhases()

        Kotlin-style property alias for getNumberOfPhases()

      • numPhases

         long numPhases()

        Kotlin-style property alias for getNumberOfPhases()