25package umontreal.ssj.randvar;
27import umontreal.ssj.rng.*;
28import umontreal.ssj.probdist.*;
49 protected double alpha1;
50 protected double alpha2;
51 protected double beta;
71 this(s, alpha1, alpha2, 1.0);
80 setParams(dist.getAlpha1(), dist.getAlpha2(), dist.getBeta());
118 public void setParams(
double alpha1,
double alpha2,
double beta) {
120 throw new IllegalArgumentException(
"alpha1 <= 0");
122 throw new IllegalArgumentException(
"alpha2 <= 0");
124 throw new IllegalArgumentException(
"beta <= 0");
125 this.alpha1 = alpha1;
126 this.alpha2 = alpha2;
Extends the class ContinuousDistribution for the Pearson type VI distribution with shape parameters ...
double inverseF(double u)
Returns the inverse distribution function .
double getBeta()
Returns the parameter of this object.
Pearson6Gen(RandomStream s, double alpha1, double alpha2)
Creates a Pearson6 random variate generator with parameters.
double getAlpha2()
Returns the parameter of this object.
Pearson6Gen(RandomStream s, double alpha1, double alpha2, double beta)
Creates a Pearson6 random variate generator with parameters.
Pearson6Gen(RandomStream s, Pearson6Dist dist)
Creates a new generator for the distribution dist, using stream s.
double getAlpha1()
Returns the parameter of this object.
static double nextDouble(RandomStream s, double alpha1, double alpha2, double beta)
Generates a variate from the Pearson VI distribution with shape parameters and , and scale parameter...
void setParams(double alpha1, double alpha2, double beta)
Sets the parameters , and.
This interface defines the basic structures to handle multiple streams of uniform (pseudo)random numb...
double nextDouble()
Returns a (pseudo)random number from the uniform distribution over the interval , using this stream,...