public class KumaraswamyDistribution extends java.lang.Object implements IDistribution
IDistribution.SimpleDistribution
Modifier and Type | Field and Description |
---|---|
static KumaraswamyDistribution |
instance |
EXCLUSIVE_ONE, EXCLUSIVE_ZERO
Constructor and Description |
---|
KumaraswamyDistribution() |
KumaraswamyDistribution(double a,
double b) |
Modifier and Type | Method and Description |
---|---|
double |
getA() |
double |
getB() |
double |
getLowerBound()
Gets the lower inclusive bound of the distribution.
|
double |
getMean()
Gets the mean value of this distribution.
|
double |
getUpperBound()
Gets the upper inclusive bound of the distribution.
|
double |
nextDouble(IRNG rng)
Gets a double between
getLowerBound() and getUpperBound() that obeys this distribution. |
void |
setA(double a) |
void |
setB(double b) |
public static final KumaraswamyDistribution instance
public KumaraswamyDistribution()
public KumaraswamyDistribution(double a, double b)
public double getA()
public void setA(double a)
public double getB()
public void setB(double b)
public double getLowerBound()
IDistribution
IDistribution.EXCLUSIVE_ZERO
.getLowerBound
in interface IDistribution
public double getUpperBound()
IDistribution
IRNG.nextDouble()
), then this will be IDistribution.EXCLUSIVE_ONE
.getUpperBound
in interface IDistribution
public double nextDouble(IRNG rng)
getLowerBound()
and getUpperBound()
that obeys this distribution.nextDouble
in interface IDistribution
rng
- an IRNG, such as RNG
or GWTRNG
, that this will get one or more random numbers fromgetLowerBound()
and getUpperBound()
public double getMean()
getMean
in interface IDistribution
Copyright © Eben Howard 2012–2022. All rights reserved.