mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
|
A class to support linear prediction.
Definition at line 51 of file linearPredictor.hpp.
#include <sigproc/linearPredictor.hpp>
Public Member Functions | |
int | calcCoefficients (const std::vector< realT > &ac, size_t Nc, size_t Npred=1, realT condition=0) |
Calculate the LP coefficients given an autocorrelation. | |
int | calcCoefficientsLevinson (const std::vector< realT > &ac, size_t Nc, size_t Npred=1) |
int | calcCoefficientsLevinson (const realT *ac, size_t acSz, size_t Nc, unsigned Npred=1) |
|
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::sigproc::linearPredictor< _realT >::calcCoefficients().
Referenced by mx::sigproc::linearPredictor< _realT >::calcCoefficients(), and mx::AO::analysis::clAOLinearPredictor< _realT >::calcCoefficients().
|
inline |
[in] | ac | The autocorrelation, at least Nc+Npred in length |
[in] | acSz | The length of the autocorrelation |
[in] | Nc | The number of LP coefficients desired |
[in] | Npred | [optional] The prediction length, default is 1 |
Definition at line 126 of file linearPredictor.hpp.
|
inline |
[in] | ac | The autocorrelation, at least Nc+Npred in length |
[in] | Nc | The number of LP coefficients desired |
[in] | Npred | [optional] The prediction length, default is 1 |
Definition at line 116 of file linearPredictor.hpp.
References mx::sigproc::linearPredictor< _realT >::calcCoefficientsLevinson().
Referenced by mx::sigproc::linearPredictor< _realT >::calcCoefficientsLevinson().