X
- the discrete random variable (domain) typepublic interface ProbabilityMassFunction<X> extends Iterable<ProbabilityMassFunction.Mass<X>>
fX(x) = Pr(X = x) = Pr({s ∈ S : X(s) = x})
Modifier and Type | Interface and Description |
---|---|
static class |
ProbabilityMassFunction.Mass<X>
Stores a possible outcome for a probability distribution and its associated probability.
|
Modifier and Type | Method and Description |
---|---|
double |
evaluate(X x)
Compute the probability mass for a discrete realization x.
|
forEach, iterator, spliterator
double evaluate(X x)
x
- a realizationpmf(x)
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.