Package Acquisition
Class DCFilter
java.lang.Object
Acquisition.DCFilter
Class to remove DC offset from audio data.
- Author:
 - Douglas Gillespie
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidfilterData(int channel, double[] data) Filter data in place.doublegetAlpha()double[]intgetChannelCallCount(int channel) intdoubledoublevoidsetTimeContant(double sampleRate, double timeConstant) Set the time constant 
- 
Constructor Details
- 
DCFilter
public DCFilter(double sampleRate, double timeConstant, int nChannels)  
 - 
 - 
Method Details
- 
setTimeContant
public void setTimeContant(double sampleRate, double timeConstant) Set the time constant- Parameters:
 timeConstant-timeConstant2-timeConstant-
 - 
filterData
public void filterData(int channel, double[] data) Filter data in place.- Parameters:
 channel-data-
 - 
getChannelCallCount
public int getChannelCallCount(int channel)  - 
getSampleRate
public double getSampleRate() - 
getTimeConstant
public double getTimeConstant() - 
getnChannels
public int getnChannels() - 
getBackground
public double[] getBackground() - 
getAlpha
public double getAlpha() 
 -