Package jline.lang.processes
Class Pareto
java.lang.Object
jline.lang.processes.Distribution
jline.lang.processes.ContinuousDistribution
jline.lang.processes.Pareto
- All Implemented Interfaces:
Serializable
A Pareto distribution
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
evalCDF
(double t) double
evalLST
(double s) static Pareto
fitMeanAndSCV
(double mean, double scv) double
getMean()
double
getRate()
double
getSCV()
double
double
getVar()
static double
gpcdf
(double x, double k, double sigma, double theta) double[]
sample
(int n) Gets n samples from the distributiondouble[]
Methods inherited from class jline.lang.processes.Distribution
evalProbInterval, getName, getNumParams, getParam, getSupport, isContinuous, isDisabled, isDiscrete, isImmediate, setNumParams, setParam
-
Constructor Details
-
Pareto
public Pareto(double shape, double scale)
-
-
Method Details
-
gpcdf
public static double gpcdf(double x, double k, double sigma, double theta) -
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
-