public class ClickRemoval
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
defaultClickPower |
static double |
defaultClickThreshold |
Constructor and Description |
---|
ClickRemoval() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static final double defaultClickThreshold
public static final int defaultClickPower
public void removeClickInPlace(double[] waveData, double threshold, double power)
waveData
- public double[] removeClicks(double[] waveData, double threshold, double power)
waveData
- public double[] removeClicks(double[] sourceData, double[] newData, double threshold, double power)
sourceData
- input data arraynewData
- output data arraythreshold
- threshold for removal (5 is a good value)power
- removal power (6 is a good value)