|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectFilters.IirfFilter
public class IirfFilter
Digital filtering with Infinite Impulse Response filter functions A new instance of this class must be created for each channel
| Nested Class Summary | |
|---|---|
(package private) class |
IirfFilter.FilterNotPair
|
(package private) class |
IirfFilter.FilterPair
|
(package private) class |
IirfFilter.FilterUnit
|
| Field Summary | |
|---|---|
private int |
channel
|
private double |
filterGainConstant
|
private FilterMethod |
filterMethod
|
private FilterParams |
filterParams
|
private IirfFilter.FilterUnit[] |
filterUnits
|
private int |
nPoleZeroPairs
|
private Complex[] |
poles
|
private PamRawDataBlock |
rawDataBlock
|
private float |
sampleRate
|
private Complex[] |
zeros
|
| Constructor Summary | |
|---|---|
IirfFilter(int channel,
FilterParams filterParams,
float sampleRate)
|
|
| Method Summary | |
|---|---|
int |
getFilterDelay()
Gets the delay of the filter - rarely used, but can be important for some processing tasks. |
FilterMethod |
getFilterMethod()
|
void |
prepareFilter()
Calculates the poles and zeros for the filter and sets up any memory buffers required during real time operation. |
double |
runFilter(double aData)
Runs the filter on a single data value |
void |
runFilter(double[] inputData)
Runs the filter on an array of data |
void |
runFilter(double[] inputData,
double[] outputData)
Runs the filter on an array of data |
void |
sayFilter()
|
void |
setFilterMethod(FilterMethod filterMethod)
|
void |
setParams(FilterParams filterParams)
|
void |
setParams(int channel,
FilterParams filterParams,
float sampleRate)
|
private void |
setupRTOperation()
Setup buffers and filter pairs for real time operation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int channel
private FilterParams filterParams
private PamRawDataBlock rawDataBlock
private FilterMethod filterMethod
private Complex[] poles
private Complex[] zeros
private int nPoleZeroPairs
private float sampleRate
private IirfFilter.FilterUnit[] filterUnits
private double filterGainConstant
| Constructor Detail |
|---|
public IirfFilter(int channel,
FilterParams filterParams,
float sampleRate)
channel - Channel numberfilterParams - Parameters for filter operation| Method Detail |
|---|
public void setParams(int channel,
FilterParams filterParams,
float sampleRate)
public void setParams(FilterParams filterParams)
public void prepareFilter()
Filter
prepareFilter in interface Filterpublic void sayFilter()
private void setupRTOperation()
public void runFilter(double[] inputData)
FilterNew values overwrite the old values in the array.
runFilter in interface Filter
public void runFilter(double[] inputData,
double[] outputData)
FilterNew values write into the output data array.
runFilter in interface Filterpublic double runFilter(double aData)
Filter
runFilter in interface Filterpublic FilterMethod getFilterMethod()
public void setFilterMethod(FilterMethod filterMethod)
public int getFilterDelay()
Filter
getFilterDelay in interface Filter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||