Larus glider flight sensor system 3.9.2024
Software-In-The-Loop test and validation system
Loading...
Searching...
No Matches
linear_least_square_fit< sample_type, evaluation_type > Class Template Reference

linear least square fit for y = a + b * x More...

#include <Linear_Least_Square_Fit.h>

Public Member Functions

 linear_least_square_fit (void)
 
void add_value (const sample_type x, const sample_type y)
 
void reset (void)
 
void evaluate (evaluation_type &a, evaluation_type &b, evaluation_type &variance_a, evaluation_type &variance_b) const
 
void evaluate (linear_least_square_result< evaluation_type > &r) const
 
unsigned get_count (void) const
 
sample_type get_mean_y (void) const
 
sample_type get_mean_x (void) const
 

Detailed Description

template<typename sample_type, typename evaluation_type = sample_type>
class linear_least_square_fit< sample_type, evaluation_type >

linear least square fit for y = a + b * x

Definition at line 51 of file Linear_Least_Square_Fit.h.

Constructor & Destructor Documentation

◆ linear_least_square_fit()

Member Function Documentation

◆ add_value()

◆ evaluate() [1/2]

◆ evaluate() [2/2]

◆ get_count()

template<typename sample_type , typename evaluation_type = sample_type>
unsigned linear_least_square_fit< sample_type, evaluation_type >::get_count ( void  ) const
inline

Definition at line 103 of file Linear_Least_Square_Fit.h.

Referenced by air_density_observer::feed_metering().

◆ get_mean_x()

template<typename sample_type , typename evaluation_type = sample_type>
sample_type linear_least_square_fit< sample_type, evaluation_type >::get_mean_x ( void  ) const
inline

Definition at line 111 of file Linear_Least_Square_Fit.h.

◆ get_mean_y()

template<typename sample_type , typename evaluation_type = sample_type>
sample_type linear_least_square_fit< sample_type, evaluation_type >::get_mean_y ( void  ) const
inline

Definition at line 107 of file Linear_Least_Square_Fit.h.

Referenced by air_density_observer::feed_metering().

◆ reset()


The documentation for this class was generated from the following file: