Ginan
Loading...
Searching...
No Matches
algebra.hpp File Reference

Data Structures

struct  KFKey
 Keys used to interface with Kalman filter objects. More...
 
struct  FilterChunk
 
struct  ComponentsDetails
 
struct  KFMeas
 Object to hold measurements, design matrices, and residuals for multiple observations. More...
 
struct  InitialState
 Object to hold the values used to initialise new states when adding to the kalman filter object. More...
 
struct  KFStatistics
 
struct  KFMeasList
 
struct  KFMeasEntryList
 
struct  Exponential
 
struct  KFState_
 Kalman filter object. More...
 
struct  KFState
 Wrapper to protect main KFState_ structure from multithreading issues. More...
 
struct  KFMeasEntry
 Object to hold an individual measurement. More...
 

Functions

InitialState initialStateFromConfig (const KalmanModel &kalmanModel, int index=0)
 
KFState mergeFilters (const vector< KFState * > &kfStatePointerList, const vector< KF > &stateList)
 
MatrixXi correlationMatrix (MatrixXd &P)
 
void outputResiduals (Trace &trace, KFMeas &kfMeas, int iteration, string suffix, int begH, int numH)
 
bool isPositiveSemiDefinite (MatrixXd &mat)
 
int filter_ (const double *x, const double *P, const double *H, const double *v, const double *R, int n, int m, double *xp, double *Pp)
 
double * mat (int n, int m)
 
intimat (int n, int m)
 
double * zeros (int n, int m)
 
double * eye (int n)
 
double dot (const double *a, const double *b, int n)
 
double norm (const double *a, int n)
 
void matcpy (double *A, const double *B, int n, int m)
 
void matmul (const char *tr, int n, int k, int m, double alpha, const double *A, const double *B, double beta, double *C)
 
int matinv (double *A, int n)
 
int solve (const char *tr, const double *A, const double *Y, int n, int m, double *X)
 

Typedefs

typedef std::ostream Trace
 
typedef bool(* StateRejectCallback) (Trace &trace, KFState &kfState, KFMeas &meas, const KFKey &key, bool postFit)
 
typedef bool(* MeasRejectCallback) (Trace &trace, KFState &kfState, KFMeas &meas, int index, bool postFit)
 

Typedef Documentation

◆ MeasRejectCallback

typedef bool(* MeasRejectCallback) (Trace &trace, KFState &kfState, KFMeas &meas, int index, bool postFit)

◆ StateRejectCallback

typedef bool(* StateRejectCallback) (Trace &trace, KFState &kfState, KFMeas &meas, const KFKey &key, bool postFit)

◆ Trace

typedef std::ostream Trace

Function Documentation

◆ correlationMatrix()

MatrixXi correlationMatrix ( MatrixXd & P)
Here is the caller graph for this function:

◆ dot()

double dot ( const double * a,
const double * b,
int n )
Here is the caller graph for this function:

◆ eye()

double * eye ( int n)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ filter_()

int filter_ ( const double * x,
const double * P,
const double * H,
const double * v,
const double * R,
int n,
int m,
double * xp,
double * Pp )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ imat()

int * imat ( int n,
int m )
Here is the caller graph for this function:

◆ initialStateFromConfig()

InitialState initialStateFromConfig ( const KalmanModel & kalmanModel,
int index = 0 )
Here is the caller graph for this function:

◆ isPositiveSemiDefinite()

bool isPositiveSemiDefinite ( MatrixXd & mat)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ mat()

double * mat ( int n,
int m )
Here is the caller graph for this function:

◆ matcpy()

void matcpy ( double * A,
const double * B,
int n,
int m )
Here is the caller graph for this function:

◆ matinv()

int matinv ( double * A,
int n )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ matmul()

void matmul ( const char * tr,
int n,
int k,
int m,
double alpha,
const double * A,
const double * B,
double beta,
double * C )
Here is the caller graph for this function:

◆ mergeFilters()

KFState mergeFilters ( const vector< KFState * > & kfStatePointerList,
const vector< KF > & stateList )
Here is the caller graph for this function:

◆ norm()

double norm ( const double * a,
int n )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ outputResiduals()

void outputResiduals ( Trace & trace,
KFMeas & kfMeas,
int iteration,
string suffix,
int begH,
int numH )
Parameters
traceTrace file to output to
kfMeasMeasurements, noise, and design matrix
iterationNumber of iterations prior to this check
suffixSuffix to use in header
begHIndex of first measurement to process
numHNumber of measurements to process
Here is the call graph for this function:
Here is the caller graph for this function:

◆ solve()

int solve ( const char * tr,
const double * A,
const double * Y,
int n,
int m,
double * X )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ zeros()

double * zeros ( int n,
int m )
Here is the caller graph for this function: