Package fftManager
Class ClickRemoval
java.lang.Object
fftManager.ClickRemoval
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
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final double
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.
-
Field Details
-
defaultClickThreshold
public static final double defaultClickThreshold- See Also:
-
defaultClickPower
public static final int defaultClickPower- See Also:
-
-
Constructor Details
-
ClickRemoval
public ClickRemoval()
-
-
Method Details
-
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)
-