Package Filters
Class IIRFilterMethod
java.lang.Object
Filters.FilterMethod
Filters.IIRFilterMethod
- Direct Known Subclasses:
ButterworthMethod,ChebyshevMethod
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected doubleprotected doubleprotected doubleprotected Complex[]protected Complex[]protected doubleFields inherited from class Filters.FilterMethod
filterParams -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateFilter(int channel) double[]Get coefficients from poles and zeros for fast filter computations.doublegetFilterGain(double omega) Get the filter gain at an angular frequency (o invalid input: '<' omega invalid input: '<' pi).doubledoublegetFilterPhase(double omega) Get the filter phase at an angular frequency (o invalid input: '<' omega invalid input: '<' pi).Complex[]getPoles(FilterParams filterParams) Complex[]getZeros(FilterParams filterParams) intMethods inherited from class Filters.FilterMethod
createFilterMethod, getFilterParams, getSampleRate, setFilterParams, setSampleRate
-
Field Details
-
poles
-
zeros
-
omega1
protected double omega1 -
omega2
protected double omega2 -
omega3
protected double omega3 -
zeroValue
protected double zeroValue
-
-
Constructor Details
-
IIRFilterMethod
-
-
Method Details
-
getPoles
-
getZeros
-
getPoleZeros
-
poleZeroCount
public int poleZeroCount() -
calculateOmegaValues
public void calculateOmegaValues() -
getFastFilterCoefficients
public double[] getFastFilterCoefficients()Get coefficients from poles and zeros for fast filter computations.- Overrides:
getFastFilterCoefficientsin classFilterMethod- Returns:
-
getFilterGain
public double getFilterGain(double omega) Description copied from class:FilterMethodGet the filter gain at an angular frequency (o invalid input: '<' omega invalid input: '<' pi).- Specified by:
getFilterGainin classFilterMethod- Parameters:
omega- angular frequency- Returns:
- gain
-
getFilterPhase
public double getFilterPhase(double omega) Description copied from class:FilterMethodGet the filter phase at an angular frequency (o invalid input: '<' omega invalid input: '<' pi).- Specified by:
getFilterPhasein classFilterMethod- Parameters:
omega- angular frequency- Returns:
- phase
-
getFilterGainConstant
public double getFilterGainConstant()- Specified by:
getFilterGainConstantin classFilterMethod- Returns:
- any additional gain constant (needed for IIRF's)
-
createFilter
- Specified by:
createFilterin classFilterMethod- Parameters:
channel- channel number (used in filter book keeping)- Returns:
- Create a filter object - which can actually do some filtering for us. Note that a filterMethod object may be asked to create multiple filters for multi-channel systems.
-