Package jline.lang.processes
Class HyperExp
java.lang.Object
jline.lang.processes.Distribution
jline.lang.processes.ContinuousDistribution
jline.lang.processes.Markovian
jline.lang.processes.HyperExp
- All Implemented Interfaces:
Serializable,Copyable
A hyper-exponential distribution.
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleevalCDF(double t) Evaluates the cumulative distribution function at the given point.doubleevalLST(double s) Evaluate the Laplace-Stieltjes Transform at sstatic HyperExpfitMeanAndSCV(double mean, double scv) Fit distribution with given mean and squared coefficient of variation (SCV=variance/mean^2)static HyperExpfitMeanAndSCVBalanced(double mean, double scv) Fit distribution with given squared coefficient of variation and balanced means i.e., p/mu1 = (1-p)/mu2doublegetMean()Gets the mean of this Markovian distribution.longGets the number of phases in this Markovian distribution.doublegetRate()Gets the rate of this distribution (inverse of mean).doublegetSCV()Gets the squared coefficient of variation (SCV) of this distribution.doubleGets the skewness of this distribution.doublegetVar()Gets the variance of this distribution.doublemean()Kotlin-style property alias for getMean()longKotlin-style property alias for getNumberOfPhases()longKotlin-style property alias for getNumberOfPhases()doublerate()Kotlin-style property alias for getRate()double[]sample(int n) Gets n samples from the distributiondouble[]Generates random samples from this distribution using the specified random generator.doublescv()Kotlin-style property alias for getSCV()doubleskewness()Kotlin-style property alias for getSkewness()toString()doublevar()Kotlin-style property alias for getVar()Methods inherited from class jline.lang.processes.Markovian
acf, D, embedded, embeddedProb, evalCDF, evalMeanT, evalVarT, getACF, getEmbedded, getEmbeddedProb, getIDC, getIDI, getInitProb, getMoments, getMu, getPhi, getProcess, getSubgenerator, getVariance, idc, idi, initProb, moments, mu, phi, process, setMean, setProcess, setRate, subgenerator, varianceMethods inherited from class jline.lang.processes.Distribution
evalProbInterval, getName, getNumParams, getParam, getSupport, isContinuous, isDisabled, isDiscrete, isImmediate, isMarkovian, name, numParams, param, setNumParams, setParam, support
-
Constructor Details
-
HyperExp
public HyperExp(double p, double lambda1, double lambda2) -
HyperExp
public HyperExp(double p, double lambda)
-
-
Method Details
-
fitMeanAndSCV
Fit distribution with given mean and squared coefficient of variation (SCV=variance/mean^2) -
fitMeanAndSCVBalanced
Fit distribution with given squared coefficient of variation and balanced means i.e., p/mu1 = (1-p)/mu2 -
evalCDF
public double evalCDF(double t) Description copied from class:MarkovianEvaluates the cumulative distribution function at the given point. -
evalLST
public double evalLST(double s) Description copied from class:DistributionEvaluate the Laplace-Stieltjes Transform at s -
getMean
public double getMean()Description copied from class:MarkovianGets the mean of this Markovian distribution. -
getNumberOfPhases
public long getNumberOfPhases()Description copied from class:MarkovianGets the number of phases in this Markovian distribution.- Overrides:
getNumberOfPhasesin classMarkovian- Returns:
- the number of phases
-
getRate
public double getRate()Description copied from class:DistributionGets the rate of this distribution (inverse of mean). -
getSCV
public double getSCV()Description copied from class:DistributionGets the squared coefficient of variation (SCV) of this distribution. SCV = Var(X) / E[X]^2. -
getSkewness
public double getSkewness()Description copied from class:DistributionGets the skewness of this distribution. Skewness measures the asymmetry of the probability distribution.- Overrides:
getSkewnessin classMarkovian- Returns:
- the skewness value
-
getVar
public double getVar()Description copied from class:DistributionGets the variance of this distribution. Computed as SCV * mean^2. -
sample
public double[] sample(int n) Gets n samples from the distribution -
sample
Description copied from class:DistributionGenerates random samples from this distribution using the specified random generator. -
toString
-
mean
public double mean()Kotlin-style property alias for getMean() -
rate
public double rate()Kotlin-style property alias for getRate() -
scv
public double scv()Kotlin-style property alias for getSCV() -
skewness
public double skewness()Kotlin-style property alias for getSkewness() -
var
public double var()Kotlin-style property alias for getVar() -
numberOfPhases
public long numberOfPhases()Kotlin-style property alias for getNumberOfPhases()- Overrides:
numberOfPhasesin classMarkovian
-
numPhases
public long numPhases()Kotlin-style property alias for getNumberOfPhases()
-