Package jline.lang.processes
Class Immediate
java.lang.Object
jline.lang.processes.Distribution
jline.lang.processes.Immediate
- All Implemented Interfaces:
Serializable
An Immediate distribution that always samples 0.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
evalCDF
(double t) double
evalLST
(double s) static Immediate
double
getMean()
double
getMu()
getPH()
double
getPhi()
double
getRate()
double
getSCV()
double
double
getVar()
boolean
boolean
double[]
sample
(int n) Gets n samples from the distributiondouble[]
Methods inherited from class jline.lang.processes.Distribution
evalProbInterval, getName, getNumParams, getParam, getSupport, isContinuous, isDiscrete, setNumParams, setParam
-
Constructor Details
-
Immediate
public Immediate()
-
-
Method Details
-
getInstance
-
isDisabled
public boolean isDisabled()- Overrides:
isDisabled
in classDistribution
-
sample
public double[] sample(int n) Gets n samples from the distribution- Overrides:
sample
in classDistribution
- Parameters:
n
- - the number of samples- Returns:
- - n samples from the distribution
-
sample
- Specified by:
sample
in classDistribution
-
getRate
public double getRate()- Overrides:
getRate
in classDistribution
-
getMean
public double getMean()- Specified by:
getMean
in classDistribution
-
getSCV
public double getSCV()- Specified by:
getSCV
in classDistribution
-
getMu
public double getMu() -
getPhi
public double getPhi() -
evalCDF
public double evalCDF(double t) - Specified by:
evalCDF
in classDistribution
-
evalLST
public double evalLST(double s) -
getPH
-
isImmediate
public boolean isImmediate()- Overrides:
isImmediate
in classDistribution
-
getSkewness
public double getSkewness()- Specified by:
getSkewness
in classDistribution
-
getVar
public double getVar()- Overrides:
getVar
in classDistribution
-