public class HyperbolicSecantGen extends RandomVariateGen
| Constructor and Description |
|---|
HyperbolicSecantGen(RandomStream s)
Creates a hyperbolic secant random variate generator
with parameters μ = 0 and σ = 1,
using stream s.
|
HyperbolicSecantGen(RandomStream s,
double mu,
double sigma)
Creates a hyperbolic secant random variate generator
with parameters μ = mu and σ = sigma,
using stream s.
|
HyperbolicSecantGen(RandomStream s,
HyperbolicSecantDist dist)
Creates a new generator for the distribution dist,
using stream s.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getMu()
Returns the parameter μ of this object.
|
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 parameter σ.
|
getDistribution, getStream, nextArrayOfDouble, nextDouble, setStreampublic HyperbolicSecantGen(RandomStream s, double mu, double sigma)
public HyperbolicSecantGen(RandomStream s)
public HyperbolicSecantGen(RandomStream s, HyperbolicSecantDist dist)
public static double nextDouble(RandomStream s, double mu, double sigma)
public double getMu()
public double getSigma()
To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.