SignalUtils::FractionalImpulse Function

double FractionalImpulse(TVec *H, double FractionalDelay, TFractionalImpulse aFractionalImpulse = TFractionalImpulse::falp_60dB, double Gain = 1);

Design a fractional delay allpass FIR filter.

#NameTypeDescription
1HTVec *
2FractionalDelaydouble
3aFractionalImpulse = TFractionalImpulse::falp_60dBTFractionalImpulse
4Gain = 1double
Remarks:

The filter properties can only be set to those covered by TFractionalImpulse type. The result is returned in H and optionally a scaling factor or Gain can be specified. The fractional delay of the filter can be specified with FractionalDelay parameter, which must be between 0 and 1. The function returns the total filter delay including the integer delay part.

This routine can be called when an allpass, linear phase, fractional FIR filter is desired. The resulting impulse response stored in H can be passed directly to the FirInit and FirFilter routines for filtering.

H.FloatPrecision value on input defines the precision (single or double) of the result on output.

Declared in Dew::Signal::Units::SignalUtils · Dew.Signal/Units.SignalUtils.h · Cross-compiler