Lumiera  0.pre.03
»edit your freedom«
Statistic_test Class Reference

Description

Test:
verifies the proper working of statistic helper functions.
  • calculate mean and standard derivation
  • one-dimensional linear regression
    See also
    DataCSV_test.hpp
    statistic.hpp

Definition at line 60 of file statistic-test.cpp.

Private Member Functions

void check_baseStatistics ()
 
void check_TimeSeriesLinearRegression ()
 
void check_wightedLinearRegression ()
 
void demonstrate_DataSpan ()
 
void run (Arg)
 

Member Function Documentation

◆ demonstrate_DataSpan()

void demonstrate_DataSpan ( )
inlineprivate
Test:
a simplified preview on C++20 ranges

Definition at line 75 of file statistic-test.cpp.

◆ check_baseStatistics()

void check_baseStatistics ( )
inlineprivate
Test:
helpers to calculate mean and standard derivation

Definition at line 104 of file statistic-test.cpp.

◆ check_wightedLinearRegression()

void check_wightedLinearRegression ( )
inlineprivate
Test:
attribute a weight to each data point going into linear regression
  • using a simple scenario with three points
  • a line with gradients would run through the end points (1,1) ⟶ (5,5)
  • but we have a middle point, offset by -2 and with double weight
  • thus the regression line is overall shifted by -1
  • standard derivation is √3 and correlation 81% (both plausible and manually checked

Definition at line 137 of file statistic-test.cpp.

◆ check_TimeSeriesLinearRegression()

void check_TimeSeriesLinearRegression ( )
inlineprivate
Test:
regression over a series of measurement data
  • use greater mount of data generated with randomness
  • actually a power function is hidden in the data

Definition at line 166 of file statistic-test.cpp.

+ Inheritance diagram for Statistic_test:
+ Collaboration diagram for Statistic_test:

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