MVUE 1.0
MVUE / BLUE (Minimum Variance Unbiased Estimator / Best Linear Unbiassed Estimator)
Loading...
Searching...
No Matches
mvue_n.h
Go to the documentation of this file.
1
5 * @details
6 * This file defines the @ref estimators::mvue::MVUE_N class, which
7 * implements a Minimum Variance Unbiased Estimator (MVUE) for combining
8 * an arbitrary number of 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 * Unlike the fixed-size MVUE_2, MVUE_3, and MVUE_4 implementations,
15 * MVUE_N supports a compile-time configurable number of measurements.
16 *
17 * The class is templated to support different numeric types and different
18 * numbers of measurements.
19 *
20 * @tparam T Numeric data type used for the estimator calculations.
21 * @tparam N Number of measurements to be combined.
22 *
23 * @author Abhinay Kumar
24 * @version 1.0
25 * @date 2026-08-11
26 *
27 * @copyright
28 * Copyright (c) 2026 Abhinay Kumar
29 */
30
31#ifndef ESTIMATORS_MVUE_N_H_BLUE_4_H
32#define ESTIMATORS_MVUE_N_H_BLUE_4_H
33
34#include <cstddef>
35
36namespace estimators
37{
40
43 namespace mvue
44 {
45
49
87 template <typename T, std::size_t N>
88 class MVUE_N
89 {
90 public:
99 MVUE_N();
100
104 ~MVUE_N();
105
121 void init(T *var_);
122
138 void set_param(T *var_);
139
158 T update(const T *x_i);
159
166 void reset();
167
168 private:
176 T *var;
177 };
178
179#include "../src/MVUE_N.tpp"
180
181 } // namespace mvue
182
183} // namespace estimators
184
185#endif // ESTIMATORS_MVUE_N_H_BLUE_4_H
void reset()
Resets the estimator.
Definition mvue_n.h:42
T update(const T *x_i)
Computes the minimum variance unbiased estimate.
Definition mvue_n.h:27
T * var
Array containing the measurement variances.
Definition mvue_n.h:176
MVUE_N()
Constructs an N-measurement MVUE.
Definition mvue_n.h:5
void init(T *var_)
Initializes the estimator.
Definition mvue_n.h:15
void set_param(T *var_)
Sets the estimator parameters.
Definition mvue_n.h:21
~MVUE_N()
Destroys the N-measurement MVUE.
Definition mvue_n.h:10
Contains estimation and sensor-fusion algorithms.
Definition mvue_2.h:31
Contains Minimum Variance Unbiased Estimator implementations.