Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Kalman.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

#include <BasicLinearAlgebra.h>


#include <Arduino.h>

#define KALMAN_CHECK true
Expand Down Expand Up @@ -128,11 +129,11 @@ template<int dim, class ElemT> struct Diagonal{
/********** CLASS DEFINITION **********/

// Last arg of template allows to eventually define Symmetric, AntiSymmetric, TriangularSup or TriangularInf matrices for memory saving
template<int Nstate, int Nobs, int Ncom = 0, class MemF = Array<Nstate,Nstate,float> >
template<int Nstate, int Nobs, int Ncom = 0, class MemF = BLA::Matrix<Nstate,Nstate,float> >
class KALMAN{
private:
void _update(BLA::Matrix<Nobs> obs, BLA::Matrix<Nstate> comstate);
BLA::Identity<Nstate,Nstate> Id; // Identity matrix
BLA::Matrix<Nstate,Nstate> Id; // Identity matrix
public:
//INPUT MATRICES
BLA::Matrix<Nstate,Nstate,MemF> F; // time evolution matrix
Expand Down