25package umontreal.ssj.randvar;
27import umontreal.ssj.rng.*;
28import umontreal.ssj.probdist.*;
44 protected double sigma;
99 throw new IllegalArgumentException(
"sigma <= 0");
Extends the class ContinuousDistribution for the hyperbolic secant distribution with location paramet...
double inverseF(double u)
Returns the inverse distribution function .
HyperbolicSecantGen(RandomStream s)
Creates a hyperbolic secant random variate generator with parameters and , using stream s.
HyperbolicSecantGen(RandomStream s, HyperbolicSecantDist dist)
Creates a new generator for the distribution dist, using stream s.
void setParams(double mu, double sigma)
Sets the parameters and of this object.
HyperbolicSecantGen(RandomStream s, double mu, double sigma)
Creates a hyperbolic secant random variate generator with parameters mu and sigma,...
double getSigma()
Returns the parameter of this object.
static double nextDouble(RandomStream s, double mu, double sigma)
Generates a variate from the hyperbolic secant distribution with location parameter and scale parame...
double getMu()
Returns the parameter of this object.
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,...