mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
mx::sigproc::linearPredictor< _realT > Struct Template Reference

template<typename _realT>
struct mx::sigproc::linearPredictor< _realT >

A class to support linear prediction.

Todo:
document linearPredictor

Definition at line 51 of file linearPredictor.hpp.

#include <sigproc/linearPredictor.hpp>

Public Member Functions

int calcCoefficients (std::vector< realT > &ac, size_t Nc, realT condition=0, size_t extrap=0)
 Calculate the LP coefficients given an autocorrelation. More...
 

Member Function Documentation

◆ calcCoefficients()

template<typename _realT >
int mx::sigproc::linearPredictor< _realT >::calcCoefficients ( std::vector< realT > &  ac,
size_t  Nc,
realT  condition = 0,
size_t  extrap = 0 
)
inline

Calculate the LP coefficients given an autocorrelation.

If condition==0 then the levinson recursion is used. Otherwise, SVD pseudo-inversion is used with the given condition number.

Definition at line 65 of file linearPredictor.hpp.

References mx::math::eigenPseudoInverse().

Referenced by mx::AO::analysis::clAOLinearPredictor< _realT >::calcCoefficients().


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