|
SatCat5
|
Stateless linear regression calculator.
Definition at line 376 of file ptp_filters.h.
#include <ptp_filters.h>
Public Member Functions | |
| constexpr | LinearRegression () |
| Placeholder constructor. | |
| LinearRegression (const LinearRegression &t)=default | |
| LinearRegression & | operator= (const LinearRegression &t)=default |
| LinearRegression (const unsigned n, const s64 *x, const s64 *y) | |
| Given input samples, calculate the best-fit line. | |
| s64 | extrapolate (s64 x) const |
| Extrapolate relative to the most recent sample. | |
| static constexpr unsigned | TSCALE = 48 |
| Parameters for the best-fit line. | |
| satcat5::util::int128_t | alpha |
| Parameters for the best-fit line. | |
| satcat5::util::int128_t | beta |
| Parameters for the best-fit line. | |