Class MeanEstimate

template<typename T, typename U>
class MeanEstimate

\( \frac{\bar{x}}{\bar{\sigma}^2} = \sum_{i=1}^n \frac{x_i}{\sigma_i^2} \)

See http://mathworld.wolfram.com/MaximumLikelihood.html (Eqs. 16 and 19)

Public Functions

inline MeanEstimate(T _val = 0, U _var = 0)

Construct from a value (normalized by / and) the inverse of its variance.

inline MeanEstimate(const MeanEstimate &d)

Copy Constructor.

inline MeanEstimate(const Estimate<T, U> &d)

Construct from an Estimate.

inline const MeanEstimate &operator=(const MeanEstimate &d)

Assignment operator.

inline const MeanEstimate &operator+=(const MeanEstimate &d)

Addition operator.

inline const MeanEstimate &operator+=(const Estimate<T, U> &d)

Addition operator.

inline bool operator==(T _norm_val) const

Equality operator.

Public Members

T norm_val

The value, normalized by its variance.

U inv_var

The inverse of its variance.