public interface DiscreteDistribution
Modifier and Type | Method and Description |
---|---|
double |
getMean()
Get the numerical value of the mean of this distribution.
|
double |
getVariance()
Get the numerical value of the variance of this distribution.
|
int |
sample()
Generate a random value sampled from this distribution.
|
int sample()
double getMean()
Double.NaN
if it is not defineddouble getVariance()
Double.POSITIVE_INFINITY
or
Double.NaN
if it is not defined)Copyright © 2015 University of Glasgow. All rights reserved.