spectrogramNoiseReduction.threshold
Class SpectrogramThreshold

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

public class SpectrogramThreshold
extends SpecNoiseMethod


Field Summary
static int OUTPUT_BINARY
           
static int OUTPUT_INPUT
           
static int OUTPUT_RAW
           
private  double powerThreshold
           
private  ThresholdDialogComponent thresholdDialogComponent
           
protected  ThresholdParams thresholdParams
           
 
Constructor Summary
SpectrogramThreshold()
           
 
Method Summary
 void fillXMLParameters(org.w3c.dom.Element n)
           
 int getDelay()
           
 java.lang.String getDescription()
          Get a longer description of the method in html format for hover texts in dialogs.
 SpecNoiseDialogComponent getDialogComponent()
          Get a component to include in the overall noise reductino dialog
 java.lang.String getName()
          Get a name for the method.
 java.io.Serializable getParams()
          Get the noise params for this method for storage between euns
 boolean initialise(int channelMap)
          Set up the noise reduction process
 void pickEarlierData(Complex[] earlyData, Complex[] thresholdData)
          go through an array of other data, and copy data that's in earlyData into thresholdData if the threhsoldData is > 0;
 boolean runNoiseReduction(FFTDataUnit fftDataUnit)
          Run the noise reduction on the data in place.
 boolean setParams(java.io.Serializable noiseParams)
          Set the params for this method - will check class is OK before casting.
 
Methods inherited from class spectrogramNoiseReduction.SpecNoiseMethod
getAnnotation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OUTPUT_BINARY

public static final int OUTPUT_BINARY
See Also:
Constant Field Values

OUTPUT_INPUT

public static final int OUTPUT_INPUT
See Also:
Constant Field Values

OUTPUT_RAW

public static final int OUTPUT_RAW
See Also:
Constant Field Values

thresholdParams

protected ThresholdParams thresholdParams

powerThreshold

private double powerThreshold

thresholdDialogComponent

private ThresholdDialogComponent thresholdDialogComponent
Constructor Detail

SpectrogramThreshold

public SpectrogramThreshold()
Method Detail

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 java.lang.String getName()
Description copied from class: SpecNoiseMethod
Get a name for the method.

Specified by:
getName in class SpecNoiseMethod
Returns:
String

getDescription

public java.lang.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 java.io.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(Complex[] earlyData,
                            Complex[] thresholdData)
go through an array of other data, and copy data that's in earlyData into thresholdData if the threhsoldData is > 0;

Parameters:
earlyData - data to pick from (generally raw input fft data to noise process)
binaryChoice - output from runNoiseReduction()

setParams

public boolean setParams(java.io.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

fillXMLParameters

public void fillXMLParameters(org.w3c.dom.Element n)
Specified by:
fillXMLParameters in class SpecNoiseMethod