MVUE 1.0
MVUE / BLUE (Minimum Variance Unbiased Estimator / Best Linear Unbiassed Estimator)
Loading...
Searching...
No Matches
mvue_2.tpp
Go to the documentation of this file.
1#include "../include/mvue_2.h"
2
3template <typename T>
5{
6}
7
8template <typename T>
10{
11}
12
13template <typename T>
14void estimators::mvue::MVUE_2<T>::init(T var_1_, T var_2_)
15{
16 set_param(var_1_, var_2_);
17}
18
19template <typename T>
20void estimators::mvue::MVUE_2<T>::set_param(T var_1_, T var_2_)
21{
22 var_1 = var_1_;
23 var_2 = var_2_;
24}
25
26template <typename T>
28{
29 return ((x1_i / var_1) + (x2_i / var_2)) / ((1.0 / var_1) + (1.0 / var_2));
30}
31
32template <typename T>
34{
35}
void set_param(T var_1_, T var_2_)
Sets the estimator parameters.
Definition mvue_2.h:21
void init(T var_1_, T var_2_)
Initializes the estimator.
Definition mvue_2.h:15
T update(T x1_i, T x2_i)
Computes the minimum variance unbiased estimate.
Definition mvue_2.h:28
MVUE_2()
Constructs a two-measurement MVUE.
Definition mvue_2.h:5
~MVUE_2()
Destroys the MVUE estimator.
Definition mvue_2.h:10
void reset()
Resets the estimator.
Definition mvue_2.h:34
Two-measurement Minimum Variance Unbiased Estimator.