Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TVec *BlackmanExact(TVec *Src, TSignalWindowMode WindowMode); | Exact blackman window. |
| 2 | TVec *BlackmanExact(TVec *Src, TSignalWindowMode WindowMode, int Index, int Len); | Exact Blackman window. |
Overload 1: TVec *BlackmanExact(TVec *Src, TSignalWindowMode WindowMode);
Exact blackman window.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TVec * | |
| 2 | WindowMode | TSignalWindowMode |
Remarks:
Applies exact Blackman window to Src. Window functions are applied to the signal prior to conversion to frequency domain with the FFT algorithm, to reduce the spectral leakage. Their side-effect is a lower frequency resolution.
w[n] := 0.42659071 - 0.49656062*cos(2*Pi*n/(n-1)) + 0.07684867*cos(4*Pi*n/(n-1))
0 <= n <= M - 1
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 h = Sin(Ramp(256, TMtxFloatPrecision::mvDouble, 0, 2 * PI * 0.1));
Vector h1(0);
Vector Response(0);
Vector Response1(0);
h1.Copy(h);
BlackmanExact(h, TSignalWindowMode::wmSymmetric); //window the sinc impulse response
h = h * 2.344168; //scale the signal to compensate for energy loss
FrequencyResponse(h1, nullptr, Response, 8, false, TSignalWindowType::wtRectangular, 0);
FrequencyResponse(h, nullptr, Response1, 8, false, TSignalWindowType::wtRectangular, 0);
}
See Also: SignalUtils::Kaiser, SignalUtils::SignalWindow
Declared in Dew::Signal::Units::SignalUtils · Dew.Signal/Units.SignalUtils.h · Cross-compiler
Overload 2: TVec *BlackmanExact(TVec *Src, TSignalWindowMode WindowMode, int Index, int Len);
Exact Blackman window.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TVec * | |
| 2 | WindowMode | TSignalWindowMode | |
| 3 | Index | int | |
| 4 | Len | int |
Remarks:
Applies Exact Blackman window to Src vector from element at Index to element at Index + Len - 1.
Declared in Dew::Signal::Units::SignalUtils · Dew.Signal/Units.SignalUtils.h · Cross-compiler