MVUE 1.0
MVUE / BLUE (Minimum Variance Unbiased Estimator / Best Linear Unbiassed Estimator)
Loading...
Searching...
No Matches
mvue_4.h
Go to the documentation of this file.
1
5 * @details
6 * This file defines the @ref estimators::mvue::MVUE_4 class, which
7 * implements a Minimum Variance Unbiased Estimator (MVUE) for combining
8 * four measurements.
9 *
10 * Each measurement is associated with a variance. The estimator combines
11 * the measurements according to their variances, giving greater weight
12 * to measurements with lower variance.
13 *
14 * The class is templated to support different numeric types such as
15 * @c float and @c double.
16 *
17 * @tparam T Numeric data type used for the estimator calculations.
18 *
19 * @author Abhinay Kumar
20 * @version 1.0
21 * @date 2026-08-11
22 *
23 * @copyright
24 * Copyright (c) 2026 Abhinay Kumar
25 */
26
27#ifndef ESTIMATORS_MVUE_4_H_BLUE_4_H
28#define ESTIMATORS_MVUE_4_H_BLUE_4_H
29
30namespace estimators
31{
34
37 namespace mvue
38 {
39
43
68 template <typename T>
69 class MVUE_4
70 {
71 public:
80 MVUE_4();
81
85 ~MVUE_4();
86
99 void init(T var_1_, T var_2_, T var_3_, T var_4_);
100
113 void set_param(T var_1_, T var_2_, T var_3_, T var_4_);
114
130 T update(T x1_i, T x2_i, T x3_i, T x4_i);
131
138 void reset();
139
140 private:
144 T var_1 = 0.0;
145
149 T var_2 = 0.0;
150
154 T var_3 = 0.0;
155
159 T var_4 = 0.0;
160 };
161
162#include "../src/MVUE_4.tpp"
163
164 } // namespace mvue
165
166} // namespace estimators
167
168#endif // ESTIMATORS_MVUE_4_H_BLUE_4_H
T var_4
Variance of the fourth measurement.
Definition mvue_4.h:159
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
T var_3
Variance of the third measurement.
Definition mvue_4.h:154
T var_1
Variance of the first measurement.
Definition mvue_4.h:144
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
T var_2
Variance of the second measurement.
Definition mvue_4.h:149
MVUE_4()
Constructs a four-measurement MVUE.
Definition mvue_4.h:5
Contains estimation and sensor-fusion algorithms.
Definition mvue_2.h:31
Contains Minimum Variance Unbiased Estimator implementations.