#include "KFPrediction.hpp"
#include <gsl/gsl_multifit.h>
#include <stdbool.h>
#include <math.h>
#include <QList>
#include <QPoint>
Go to the source code of this file.
bool polynomialFitKFX |
( |
int |
degree, |
|
|
double |
tStart, |
|
|
QList< KFPrediction > |
preds, |
|
|
double * |
store |
|
) |
| |
Fit a polynomial equation to (x,t) points.
- Parameters
-
degree | Degree of polynomial to fit (usu: 1) |
tStart | Initial time value to fit from |
preds | List of KFPrediction with (x,y,t) data |
store | Resultant array of degree components with the coefficients; <b,M> |
- Returns
- bool Whether the fit was successful
bool polynomialFitKFY |
( |
int |
degree, |
|
|
double |
tStart, |
|
|
QList< KFPrediction > |
preds, |
|
|
double * |
store |
|
) |
| |
Fit a polynomial equation to (y,t) points.
- Parameters
-
degree | Degree of polynomial to fit (usu: 2) |
tStart | Initial time value to fit from |
preds | List of KFPrediction with (x,y,t) data |
store | Resultant array of degree components with the coefficients; <C,B,A> |
- Returns
- bool Whether the fit was successful