COSMOS core  1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems

#include <mathlib.h>

Collaboration diagram for LsFit:

Classes

struct  fitelement
 Least Squares Fit Element. More...
 

Public Member Functions

 LsFit (uint16_t cnt=10, uint16_t ord=2)
 Multi element, variable order least squares fit. More...
 
void initialize (uint16_t cnt=10, uint16_t ord=2)
 Initialize Least Squares Fit. More...
 
void update (double x, double y)
 Update scalar Least Squares Fit. More...
 
void update (double x, rvector y)
 Update rvector Least Squares Fit. More...
 
void update (double x, gvector y)
 Update gvector Least Squares Fit. More...
 
void update (double x, quaternion y)
 Update quaternion Least Squares Fit. More...
 
void update (fitelement cfit, uint16_t dep)
 Update generic Least Squares Fit. More...
 
double lastx ()
 Least squares last independent value. More...
 
double firstx ()
 Least squares first independent value. More...
 
size_t size ()
 Least squares number of values. More...
 
double eval (double x)
 Least squares dependent scalar value. More...
 
rvector evalrvector (double x)
 Least squares dependent rvector value. More...
 
gvector evalgvector (double x)
 Least squares dependent gvector value. More...
 
quaternion evalquaternion (double x)
 Least squares dependent quaternion value. More...
 
double slope (double x)
 Least squares dependent scalar 1st derivative. More...
 
rvector slopervector (double x)
 Least squares dependent rvector 1st derivative. More...
 
gvector slopegvector (double x)
 Least squares dependent gvector 1st derivative. More...
 
quaternion slopequaternion (double x)
 Least squares dependent quaternion 1st derivative. More...
 
double accel (double x)
 Least squares dependent scalar 2nd derivative. More...
 
rvector accelrvector (double x)
 Least squares dependent rvector 2nd derivative. More...
 
gvector accelgvector (double x)
 Least squares dependent gvector 2nd derivative. More...
 
quaternion accelquaternion (double x)
 Least squares dependent quaternion 2nd derivative. More...
 
double jerk (double x)
 Least squares dependent scalar 3rd derivative. More...
 
rvector jerkrvector (double x)
 Least squares dependent rvector 3rd derivative. More...
 
gvector jerkgvector (double x)
 Least squares dependent gvector 3rd derivative. More...
 
quaternion jerkquaternion (double x)
 Least squares dependent quaternion 3rd derivative. More...
 
vector< vector< double > > getparms ()
 Least Squares parameters. More...
 
double getbasex ()
 Least Squares base. More...
 

Public Attributes

double meanx
 
uvector meany {}
 
double stdevx
 
uvector stdevy {}
 
double resolution
 

Private Member Functions

void fit ()
 Calculate least squares fit. More...
 

Private Attributes

uint16_t element_cnt
 Least Squares Fit Structure. More...
 
uint16_t depth
 
uint32_t order
 
double basex
 
deque< fitelementvar
 
vector< vector< double > > parms
 

Member Data Documentation

uint16_t LsFit::element_cnt
private

Least Squares Fit Structure.

Contains the data for a second order least squares fit of N elements that are type rvector or quaternion.

uint16_t LsFit::depth
private
uint32_t LsFit::order
private
double LsFit::basex
private
deque<fitelement> LsFit::var
private
vector< vector<double> > LsFit::parms
private
double LsFit::meanx
uvector LsFit::meany {}
double LsFit::stdevx
uvector LsFit::stdevy {}
double LsFit::resolution

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