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