HighPassFilter.GetAlpha Method
Click or drag to resize
Accord.NET (logo)

HighPassFilterGetAlpha Method

Gets the alpha value that can be used to achieve a given cut-off frequency under a given sampling rate.

Namespace:  Accord.Audio.Filters
Assembly:  Accord.Audio (in Accord.Audio.dll) Version: 3.8.0
public static float GetAlpha(
	double frequency,
	double sampleRate
Request Example View Source


Type: SystemDouble
The desired cut-off frequency.
Type: SystemDouble
The signal sampling rate.

Return Value

Type: Single
A value for Alpha that creates a filter that can filter out the given cut-off frequency.
See Also