public class PoissonConstant extends PoissonDistribution
PoissonConstant implements 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 |
|---|
PoissonConstant(double mean)
Construct a constant Poisson distribution with the specified
mean.
|
| Modifier and Type | Method and Description |
|---|---|
void |
compileTo(ObjectOutput objOut)
Compiles an instance of this constant Poisson distribution to
the specified object output.
|
double |
mean()
Returns the mean of this distribution, which is fixed at
construction time.
|
log2Probability, minOutcome, probability, variancecumulativeProbability, cumulativeProbabilityGreater, cumulativeProbabilityLess, entropy, maxOutcomepublic 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.public double mean()
mean in interface DiscreteDistributionmean in class PoissonDistributionCopyright © 2016 Alias-i, Inc.. All rights reserved.