Package Filters
Class FIRFilterMethod
java.lang.Object
Filters.FilterMethod
Filters.FIRFilterMethod
- Direct Known Subclasses:
 FIRArbitraryFilter
FIR filter method, filter design uses a Cheychev window function.
 
Bit of a bodge to make it fit into the framework originally developed for IIR filters.
Since it uses the same parameter set as the IIR filters, the filter order for FIR filters will be 2^N-1.
- Author:
 - Doug Gillespie
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected double[]protected double[]static final intFields inherited from class Filters.FilterMethod
filterParams - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptioncreateFilter(int channel) 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).double[]Methods inherited from class Filters.FilterMethod
createFilterMethod, getFastFilterCoefficients, getFilterParams, getSampleRate, setFilterParams, setSampleRate 
- 
Field Details
- 
filterTaps
protected double[] filterTaps - 
filterResponse
protected double[] filterResponse - 
NRESPONSEPOINTS
public static final int NRESPONSEPOINTS- See Also:
 
 
 - 
 - 
Constructor Details
- 
FIRFilterMethod
 
 - 
 - 
Method Details
- 
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
 
 - 
getFilterGainConstant
public double getFilterGainConstant()- Specified by:
 getFilterGainConstantin classFilterMethod- Returns:
 - any additional gain constant (needed for IIRF's)
 
 - 
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
 
 - 
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.
 
 - 
getFilterTaps
public double[] getFilterTaps()- Returns:
 - the filterTaps
 
 
 -