Class SpectrogramThreshold

java.lang.Object
spectrogramNoiseReduction.SpecNoiseMethod
spectrogramNoiseReduction.threshold.SpectrogramThreshold

public class SpectrogramThreshold extends SpecNoiseMethod
  • Field Details

  • Constructor Details

    • SpectrogramThreshold

      public SpectrogramThreshold()
  • Method Details

    • getDialogComponent

      public SpecNoiseDialogComponent getDialogComponent()
      Description copied from class: SpecNoiseMethod
      Get a component to include in the overall noise reductino dialog
      Specified by:
      getDialogComponent in class SpecNoiseMethod
      Returns:
      component
    • getName

      public String getName()
      Description copied from class: SpecNoiseMethod
      Get a name for the method.
      Specified by:
      getName in class SpecNoiseMethod
      Returns:
      String
    • getDescription

      public String getDescription()
      Description copied from class: SpecNoiseMethod
      Get a longer description of the method in html format for hover texts in dialogs.
      Specified by:
      getDescription in class SpecNoiseMethod
      Returns:
      html description
    • getDelay

      public int getDelay()
      Specified by:
      getDelay in class SpecNoiseMethod
      Returns:
      the delay imposed on the data by this operation.
    • getParams

      public Serializable getParams()
      Description copied from class: SpecNoiseMethod
      Get the noise params for this method for storage between euns
      Specified by:
      getParams in class SpecNoiseMethod
      Returns:
    • initialise

      public boolean initialise(int channelMap)
      Description copied from class: SpecNoiseMethod
      Set up the noise reduction process
      Specified by:
      initialise in class SpecNoiseMethod
      Returns:
      true if initialised OK.
    • runNoiseReduction

      public boolean runNoiseReduction(FFTDataUnit fftDataUnit)
      Description copied from class: SpecNoiseMethod
      Run the noise reduction on the data in place.
      Specified by:
      runNoiseReduction in class SpecNoiseMethod
      Returns:
      true if ran OK/
    • pickEarlierData

      public void pickEarlierData(ComplexArray fftData, ComplexArray complexArray)
      go through an array of other data, and copy data that's in earlyData into thresholdData if the threhsoldData is > 0;
      Parameters:
      fftData - data to pick from (generally raw input fft data to noise process)
      binaryChoice - output from runNoiseReduction()
    • setParams

      public boolean setParams(Serializable noiseParams)
      Description copied from class: SpecNoiseMethod
      Set the params for this method - will check class is OK before casting.
      Specified by:
      setParams in class SpecNoiseMethod
      Returns:
      true if parameters match
    • getThresholdParams

      public ThresholdParams getThresholdParams()
    • getNode

      public SpecNoiseNodeFX getNode()
      Description copied from class: SpecNoiseMethod
      Get the FX node for the spectrogram method.
      Specified by:
      getNode in class SpecNoiseMethod
      Returns:
      the FX node for the spectrogram method.