void ArYuleWalkerSpectrum(TVec *Data, TVec *aResult, int ArOrder = 40, int ZeroPadding = 8);
Computes a frequency spectrum with the autoregressive Yule-Walker method.
Remarks:
Computes a frequency spectrum from Data and places the result in aResult. ArOrder is the autoregressive order used by the Yule-Walker method and zero padding factor for the FFT is defined with the ZeroPadding parameter.
Examples
#include "MtxExpr.h"
#include "Units.MtxExpr.h"
#include "Units.SignalUtils.h"
using namespace Dew;
using namespace Dew::Math;
using namespace Dew::Math::Units::MtxExpr;
using namespace Dew::Signal;
using namespace Dew::Signal::Units::SignalUtils;
void Example()
{
Vector b, X;
Vector Response(0);
b = Sin(Ramp(300, TMtxFloatPrecision::mvDouble, 0, 2 * PI * 50 / 300));
ArYuleWalkerSpectrum(b, Response, 4, 32);
X = Ramp(Response.Length, TMtxFloatPrecision::mvDouble, 0, 1.0 / Response.Length);
}
See Also: SignalUtils::ArCovarianceSpectrum, SignalUtils::ArMCovarianceSpectrum, SignalUtils::ArBurgSpectrum, SignalUtils::ArYuleWalker
Declared in Dew::Signal::Units::SignalUtils · Dew.Signal/Units.SignalUtils.h · Cross-compiler