fftManager
Class ClickRemoval
java.lang.Object
fftManager.ClickRemoval
public class ClickRemoval
- extends java.lang.Object
Function to remove clicks from blocks of data. Can operate
on an existing array or create a new one depending on which
function is called.
- Author:
- Doug Gillespie
|
Method Summary |
void |
removeClickInPlace(double[] waveData,
double threshold,
double power)
Writes over existing data. |
double[] |
removeClicks(double[] sourceData,
double[] newData,
double threshold,
double power)
Perform click removal. |
double[] |
removeClicks(double[] waveData,
double threshold,
double power)
Leaves existing data alone and creates new array. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
std
private STD std
weights
private double[] weights
defaultClickThreshold
public static final double defaultClickThreshold
- See Also:
- Constant Field Values
defaultClickPower
public static final int defaultClickPower
- See Also:
- Constant Field Values
ClickRemoval
public ClickRemoval()
removeClickInPlace
public void removeClickInPlace(double[] waveData,
double threshold,
double power)
- Writes over existing data.
- Parameters:
waveData -
removeClicks
public double[] removeClicks(double[] waveData,
double threshold,
double power)
- Leaves existing data alone and creates new array.
- Parameters:
waveData -
- Returns:
- new array of wave data
removeClicks
public double[] removeClicks(double[] sourceData,
double[] newData,
double threshold,
double power)
- Perform click removal.
- Parameters:
sourceData - input data arraynewData - output data arraythreshold - threshold for removal (5 is a good value)power - removal power (6 is a good value)