public class LogisticGen extends RandomVariateGen
| Constructor and Description |
|---|
LogisticGen(RandomStream s)
Creates a logistic random variate generator with parameters
α = 0 and
λ = 1,
using stream s.
|
LogisticGen(RandomStream s,
double alpha,
double lambda)
Creates a logistic random variate generator with parameters
α = alpha and λ = lambda,
using stream s.
|
LogisticGen(RandomStream s,
LogisticDist dist)
Creates a new generator for the logistic distribution
dist and stream s.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getAlpha()
Returns the parameter α of this object.
|
double |
getLambda()
Returns the parameter λ of this object.
|
static double |
nextDouble(RandomStream s,
double alpha,
double lambda)
Generates a new variate from the logistic distribution
with parameters α = alpha and λ = lambda,
using stream s.
|
getDistribution, getStream, nextArrayOfDouble, nextDouble, setStreampublic LogisticGen(RandomStream s, double alpha, double lambda)
public LogisticGen(RandomStream s)
public LogisticGen(RandomStream s, LogisticDist dist)
public static double nextDouble(RandomStream s, double alpha, double lambda)
public double getAlpha()
public double getLambda()
To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.