Package fftManager

Class ClickRemoval

java.lang.Object
fftManager.ClickRemoval

public class ClickRemoval extends 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

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final double
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    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.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

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