|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjass.generators.Butter2LowFilter
public class Butter2LowFilter
Second order Butterworth lowpass filter.
| Field Summary | |
|---|---|
protected float |
A
Gain. |
protected float |
A0
Gain. |
protected float |
cc
Coefficients (Steiglitz notation). |
protected float |
dd
Coefficients (Steiglitz notation). |
protected float |
f
Cutoff frequency in Hertz. |
protected float |
gain
Gain. |
protected float |
srate
Sampling rate in Hertz. |
| Constructor Summary | |
|---|---|
Butter2LowFilter(float srate)
Create and initialize. |
|
| Method Summary | |
|---|---|
void |
filter(float[] output,
float[] input,
int nsamples,
int inputOffset)
Proces input (may be same as output). |
void |
reset()
Reset state. |
void |
reset(float c)
Reset state. |
void |
setCutoffFrequency(float f)
Set the filter cutoff. |
void |
setGain(float gain)
Set gain. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected float srate
protected float f
protected float cc
protected float dd
protected float A
protected float A0
protected float gain
| Constructor Detail |
|---|
public Butter2LowFilter(float srate)
srate - sampling rate in Hertz.| Method Detail |
|---|
public void setCutoffFrequency(float f)
f - cutoff frequency in Hertz.public void setGain(float gain)
gain - gain.public void reset()
public void reset(float c)
c - value of constant state
public void filter(float[] output,
float[] input,
int nsamples,
int inputOffset)
filter in interface Filteroutput - user provided buffer for returned result.input - user provided input buffer.nsamples - number of samples written to output buffer.inputOffset - where to start in circular buffer input.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||