MVUE
1.0
MVUE / BLUE (Minimum Variance Unbiased Estimator / Best Linear Unbiassed Estimator)
Toggle main menu visibility
Loading...
Searching...
No Matches
mvue_n.tpp
Go to the documentation of this file.
1
#include "
../include/mvue_n.h
"
2
3
template
<
typename
T, std::
size_t
N>
4
estimators::mvue::MVUE_N<T, N>::MVUE_N
()
5
{
6
}
7
8
template
<
typename
T, std::
size_t
N>
9
estimators::mvue::MVUE_N<T, N>::~MVUE_N
()
10
{
11
}
12
13
template
<
typename
T, std::
size_t
N>
14
void
estimators::mvue::MVUE_N<T, N>::init
(T *var_)
15
{
16
set_param(var_);
17
}
18
19
template
<
typename
T, std::
size_t
N>
20
void
estimators::mvue::MVUE_N<T, N>::set_param
(T *var_)
21
{
22
var = var_;
23
}
24
25
template
<
typename
T, std::
size_t
N>
26
T
estimators::mvue::MVUE_N<T, N>::update
(
const
T *x_i)
27
{
28
T nominator = 0.0;
29
T denominator = 0.0;
30
31
for
(
int
j = 0; j < N; j++)
32
{
33
nominator += x_i[j] / var[j];
34
denominator += 1.0 / var[j];
35
}
36
37
return
nominator / denominator;
38
}
39
40
template
<
typename
T, std::
size_t
N>
41
void
estimators::mvue::MVUE_N<T, N>::reset
()
42
{
43
}
estimators::mvue::MVUE_N::reset
void reset()
Resets the estimator.
Definition
mvue_n.h:42
estimators::mvue::MVUE_N::update
T update(const T *x_i)
Computes the minimum variance unbiased estimate.
Definition
mvue_n.h:27
estimators::mvue::MVUE_N::MVUE_N
MVUE_N()
Constructs an N-measurement MVUE.
Definition
mvue_n.h:5
estimators::mvue::MVUE_N::init
void init(T *var_)
Initializes the estimator.
Definition
mvue_n.h:15
estimators::mvue::MVUE_N::set_param
void set_param(T *var_)
Sets the estimator parameters.
Definition
mvue_n.h:21
estimators::mvue::MVUE_N::~MVUE_N
~MVUE_N()
Destroys the N-measurement MVUE.
Definition
mvue_n.h:10
mvue_n.h
N-measurement Minimum Variance Unbiased Estimator.
src
mvue_n.tpp
Generated by
1.17.0