|
SSJ V. labo. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectumontreal.iro.lecuyer.randvar.RandomVariateGen
umontreal.iro.lecuyer.randvar.HyperbolicSecantGen
public class HyperbolicSecantGen
This class implements random variate generators for the hyperbolic secant distribution with location parameter μ and scale parameter σ. The density function of this distribution is
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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 σ. |
| Methods inherited from class umontreal.iro.lecuyer.randvar.RandomVariateGen |
|---|
getDistribution, getStream, nextArrayOfDouble, nextDouble, setStream, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HyperbolicSecantGen(RandomStream s,
double mu,
double sigma)
public HyperbolicSecantGen(RandomStream s)
public HyperbolicSecantGen(RandomStream s,
HyperbolicSecantDist dist)
| Method Detail |
|---|
public static double nextDouble(RandomStream s,
double mu,
double sigma)
public double getMu()
public double getSigma()
|
SSJ V. labo. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||