MVUE 1.0
MVUE / BLUE (Minimum Variance Unbiased Estimator / Best Linear Unbiassed Estimator)
Loading...
Searching...
No Matches
mvue_2.h
Go to the documentation of this file.
1
5 * @details
6 * This file defines the @ref estimators::mvue::MVUE_2 class, which
7 * implements a Minimum Variance Unbiased Estimator (MVUE) for combining
8 * two independent measurements.
9 *
10 * The estimator combines the two input measurements according to their
11 * associated variances. Measurements with lower variance are assigned
12 * greater weight in the resulting estimate.
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_2_H_BLUE_2_H
28#define ESTIMATORS_MVUE_2_H_BLUE_2_H
29
30namespace estimators
31{
34 * @brief Contains estimation and sensor-fusion algorithms.
35 */
36
37 namespace mvue
38 {
43
68 template <typename T>
69 class MVUE_2
70 {
71 public:
80 MVUE_2();
81
85 ~MVUE_2();
86
97 void init(T var_1_, T var_2_);
98
109 void set_param(T var_1_, T var_2_);
110
124 T update(T x1_i, T x2_i);
125
132 void reset();
133
134 private:
138 T var_1 = 0.0;
139
143 T var_2 = 0.0;
144 };
145
146#include "../src/MVUE_2.tpp"
147
148 } // namespace mvue
149
150} // namespace estimators
151
152#endif // ESTIMATORS_MVUE_2_H_BLUE_2_H
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 var_1
Variance of the first measurement.
Definition mvue_2.h:138
T update(T x1_i, T x2_i)
Computes the minimum variance unbiased estimate.
Definition mvue_2.h:28
T var_2
Variance of the second measurement.
Definition mvue_2.h:143
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
Contains estimation and sensor-fusion algorithms.
Definition mvue_2.h:31
Contains Minimum Variance Unbiased Estimator implementations.