## Types in MathNet.Filtering.FIR

Type FirCoefficients

Namespace MathNet.Filtering.FIR

FirCoefficients provides basic coefficient evaluation algorithms for the four most important filter types for Finite Impulse Response (FIR) Filters. Default filter order estimation: transition bandwidth is 25% of the lower passband edge, but not lower than 2 Hz, where possible (for bandpass, highpass, and bandstop) and distance from passband edge to critical frequency (DC, Nyquist) otherwise.

### Public Static Functions

#### Double[]BandPass(double samplingRate, double cutoffLow, double cutoffHigh, int halforder)

Calculates FIR Bandpass Filter Coefficients.
##### Parameters
###### `double` samplingRate

Samples per unit.

###### `double` cutoffLow

Low Cutoff frequency in samples per unit.

###### `double` cutoffHigh

High Cutoff frequency in samples per unit.

###### `int` halforder

half-order Q, so that Order N = 2*Q+1. 0 for default order.

##### Return
###### `Double[]`

The calculated filter coefficients.

#### Double[]BandStop(double samplingRate, double cutoffLow, double cutoffHigh, int halforder)

Calculates FIR Bandstop Filter Coefficients.
##### Parameters
###### `double` samplingRate

Samples per unit.

###### `double` cutoffLow

Low Cutoff frequency in samples per unit.

###### `double` cutoffHigh

High Cutoff frequency in samples per unit.

###### `int` halforder

half-order Q, so that Order N = 2*Q+1. 0 for default order.

##### Return
###### `Double[]`

The calculated filter coefficients.

#### Double[]HighPass(double samplingRate, double cutoff, int halforder)

Calculates FIR HighPass Filter Coefficients.
##### Parameters
###### `double` samplingRate

Samples per unit.

###### `double` cutoff

Cutoff frequency in samples per unit.

###### `int` halforder

half-order Q, so that Order N = 2*Q+1. 0 for default order.

##### Return
###### `Double[]`

The calculated filter coefficients.

#### Double[]LowPass(double samplingRate, double cutoff, double dcGain, int halforder)

Calculates FIR LowPass Filter Coefficients.
##### Parameters
###### `double` samplingRate

Samples per unit.

###### `double` cutoff

Desired cutoff frequency in samples per unit.

###### `double` dcGain

Desired DC gain. Defaults to 1.0.

###### `int` halforder

half-order Q, so that Order N = 2*Q+1. 0 for default order.

##### Return
###### `Double[]`

The calculated filter coefficients.