|
SimJava v2.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--eduni.simjava.distributions.Sim_logistic_obj
A random number generator based on the Logistic distribution.
| Constructor Summary | |
Sim_logistic_obj(java.lang.String name,
double location,
double scale)
Constructor with which Sim_system is allowed to set the random number
generator's seed |
|
Sim_logistic_obj(java.lang.String name,
double location,
double scale,
long seed)
The constructor with which a specific seed is set for the random number generator |
|
| Method Summary | |
java.lang.String |
get_name()
Get the random number generator's name. |
long |
get_seed()
Get the random number generator's seed. |
double |
sample()
Generate a new random number. |
void |
set_seed(long seed)
Set the random number generator's seed. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Sim_logistic_obj(java.lang.String name,
double location,
double scale)
Sim_system is allowed to set the random number
generator's seedname - The name to be associated with this instancelocation - The location of the distributionscale - The scale of the distribution
public Sim_logistic_obj(java.lang.String name,
double location,
double scale,
long seed)
name - The name to be associated with this instancelocation - The location of the distributionscale - The scale of the distributionseed - The initial seed for the generator, two instances with
the same seed will generate the same sequence of numbers| Method Detail |
public double sample()
sample in interface ContinuousGeneratorpublic void set_seed(long seed)
set_seed in interface Generatorseed - The new seed for the generatorpublic long get_seed()
get_seed in interface Generatorpublic java.lang.String get_name()
get_name in interface Generator
|
SimJava v2.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||