public class PoissonConstant extends PoissonDistribution
PoissonConstantimplements a Poisson distribution with a fixed mean. Constant distributions may be compiled to an object output; the distribution read back in will also be a constant Poisson distribution.
|Constructor and Description|
Construct a constant Poisson distribution with the specified mean.
|Modifier and Type||Method and Description|
Compiles an instance of this constant Poisson distribution to the specified object output.
Returns the mean of this distribution, which is fixed at construction time.
log2Probability, minOutcome, probability, variance
cumulativeProbability, cumulativeProbabilityGreater, cumulativeProbabilityLess, entropy, maxOutcome
public PoissonConstant(double mean)
mean- Mean of distribution.
IllegalArgumentException- If mean is not a finite positive number.
public void compileTo(ObjectOutput objOut) throws IOException
PoissonConstant, with the same mean as this distribution.
objOut- Object output to which this distribution is compiled.
IOException- If there is an I/O exception writing.