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
A hyper-exponential distribution.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
evalCDF
(double t) double
evalLST
(double s) static HyperExp
fitMeanAndSCV
(double mean, double scv) Fit distribution with given mean and squared coefficient of variation (SCV=variance/mean^2)static HyperExp
fitMeanAndSCVBalanced
(double mean, double scv) Fit distribution with given squared coefficient of variation and balanced means i.e., p/mu1 = (1-p)/mu2double
getMean()
long
double
getRate()
double
getSCV()
double
double
getVar()
double[]
sample
(int n) Gets n samples from the distributiondouble[]
toString()
Methods inherited from class jline.lang.processes.Markovian
D, evalCDF, evalMeanT, evalVarT, getACF, getEmbedded, getEmbeddedProb, getIDC, getIDI, getInitProb, getMoments, getMu, getPhi, getProcess, getSubgenerator, getVariance, setMean, setProcess, setRate
Methods inherited from class jline.lang.processes.Distribution
evalProbInterval, getName, getNumParams, getParam, getSupport, isContinuous, isDisabled, isDiscrete, isImmediate, setNumParams, setParam
-
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 -
sample
public double[] sample(int n) Gets n samples from the distribution -
sample
-
getNumberOfPhases
public long getNumberOfPhases()- Overrides:
getNumberOfPhases
in classMarkovian
-
evalCDF
public double evalCDF(double t) -
evalLST
public double evalLST(double s) -
getSCV
public double getSCV() -
getRate
public double getRate() -
getMean
public double getMean() -
getVar
public double getVar() -
getSkewness
public double getSkewness()- Overrides:
getSkewness
in classMarkovian
-
toString
-