SatCat5
satcat5::ptp::LinearRegression Struct Reference

Detailed Description

Stateless linear regression calculator.

Definition at line 376 of file ptp_filters.h.

#include <ptp_filters.h>

Collaboration diagram for satcat5::ptp::LinearRegression:
[legend]

Public Member Functions

constexpr LinearRegression ()
 Placeholder constructor.
 
 LinearRegression (const LinearRegression &t)=default
 
LinearRegressionoperator= (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.
 

The documentation for this struct was generated from the following files: