public class StepGenerator extends Object
Modifier and Type | Field and Description |
---|---|
protected Binomial |
binomial |
protected Poisson |
poisson |
Constructor and Description |
---|
StepGenerator(RandomGenerator random) |
Modifier and Type | Method and Description |
---|---|
static void |
main(String... args) |
int |
nGo(int n,
double lnp) |
int |
poisson(double mean) |
int |
versatile_ngo(int n,
double p)
Return a random variate from one of the distributions appropriate for
first-order reactions (binomial or poisson) depending on the
distribution_t mode specified when this object was created.
|
public StepGenerator(RandomGenerator random)
public int nGo(int n, double lnp)
public int versatile_ngo(int n, double p)
public int poisson(double mean)
Copyright © 2019. All rights reserved.