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
Syntax
public static float GetAlpha(
	double frequency,
	double sampleRate
)
Request Example View Source

Parameters

frequency
Type: SystemDouble
The desired cut-off frequency.
sampleRate
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