X - the type of the valuepublic static final class ProbabilityMassFunction.Mass<X> extends Object
| Constructor and Description |
|---|
Mass(X outcome,
double probability)
Creates an instance with an outcome and its associated probability.
|
| Modifier and Type | Method and Description |
|---|---|
X |
outcome()
Gets the outcome.
|
double |
probability()
Gets the probability of the outcome.
|
public Mass(X outcome, double probability)
outcome - an outcomeprobability - the probability that the given outcome will occurpublic X outcome()
public double probability()
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.