pub trait MeanN<T> {
fn mean(&self) -> Option<T>;
}
Expand description
The Mean
trait implements the calculation of a mean.
Returns the means of the dirichlet distribution
for the i
th element where α_i
is the i
th concentration parameter
and α_0
is the sum of all concentration parameters
Returns the mean of the multinomial distribution
where n
is the number of trials, p_i
is the i
th probability,
and k
is the total number of probabilities
Returns the mean of the normal distribution
This is the same mean used to construct the distribution