25package umontreal.ssj.randvar;
27import umontreal.ssj.rng.*;
28import umontreal.ssj.probdist.*;
42public class PowerGen extends RandomVariateGen {
72 setParams(dist.getA(), dist.getB(), dist.getC());
Extends the class ContinuousDistribution for the power distribution teva00a (page 161) with shape pa...
double inverseF(double u)
Returns the inverse distribution function .
double getB()
Returns the parameter .
PowerGen(RandomStream s, double a, double b, double c)
Creates a Power random variate generator with parameters a, b and c, using stream s.
void setParams(double a, double b, double c)
Sets the parameters , and for this object.
double getC()
Returns the parameter .
PowerGen(RandomStream s, double c)
Creates a Power random variate generator with parameters ,.
PowerGen(RandomStream s, PowerDist dist)
Creates a new generator for the power distribution dist and stream s.
double getA()
Returns the parameter .
static double nextDouble(RandomStream s, double a, double b, double c)
Uses inversion to generate a new variate from the power distribution with parameters  a,...
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,...