- 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.
◆ demonstrate_DataSpan()
void demonstrate_DataSpan |
( |
| ) |
|
|
inlineprivate |
◆ check_baseStatistics()
void check_baseStatistics |
( |
| ) |
|
|
inlineprivate |
◆ 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.
The documentation for this class was generated from the following file: