fftManager
Class ClickRemoval

java.lang.Object
  extended by 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

Field Summary
static int defaultClickPower
           
static double defaultClickThreshold
           
private  STD std
           
private  double[] weights
           
 
Constructor Summary
ClickRemoval()
           
 
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
 

Field Detail

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
Constructor Detail

ClickRemoval

public ClickRemoval()
Method Detail

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 array
newData - output data array
threshold - threshold for removal (5 is a good value)
power - removal power (6 is a good value)