Package jline.lang.processes
Class Lognormal
java.lang.Object
jline.lang.processes.Distribution
jline.lang.processes.ContinuousDistribution
jline.lang.processes.Lognormal
- All Implemented Interfaces:
Serializable
A Lognormal distribution.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class jline.lang.processes.Distribution
evalProbInterval, getName, getNumParams, getParam, getSupport, isContinuous, isDisabled, isDiscrete, isImmediate, setNumParams, setParam
-
Constructor Details
-
Lognormal
public Lognormal(double mu, double sigma)
-
-
Method Details
-
fitMeanAndSCV
-
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
-
getMean
public double getMean()- Specified by:
getMean
in classDistribution
-
getRate
public double getRate()- Overrides:
getRate
in classDistribution
-
getSCV
public double getSCV()- Specified by:
getSCV
in classDistribution
-
getVar
public double getVar()- Overrides:
getVar
in classDistribution
-
getSkewness
public double getSkewness()- Specified by:
getSkewness
in classDistribution
-
evalCDF
public double evalCDF(double t) - Specified by:
evalCDF
in classDistribution
-
evalLST
public double evalLST(double s) - Specified by:
evalLST
in classContinuousDistribution
-