spectrogramNoiseReduction.averageSubtraction
Class AverageSubtraction

java.lang.Object
  extended by spectrogramNoiseReduction.SpecNoiseMethod
      extended by spectrogramNoiseReduction.averageSubtraction.AverageSubtraction

public class AverageSubtraction
extends SpecNoiseMethod


Field Summary
private  AverageSubtractionDialogBits averageSubtractionDialogBits
           
protected  AverageSubtractionParameters averageSubtractionParameters
           
private  double[][] channelStorage
          Storage of data for each channel
private  double newConstant
           
private  double oldConstant
           
private static double runInScale
           
private static int runInSlices
           
(package private)  int totalSlices
           
 
Constructor Summary
AverageSubtraction()
           
 
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
 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

averageSubtractionDialogBits

private AverageSubtractionDialogBits averageSubtractionDialogBits

averageSubtractionParameters

protected AverageSubtractionParameters averageSubtractionParameters

newConstant

private double newConstant

oldConstant

private double oldConstant

runInSlices

private static final int runInSlices
See Also:
Constant Field Values

runInScale

private static final double runInScale
See Also:
Constant Field Values

totalSlices

int totalSlices

channelStorage

private double[][] channelStorage
Storage of data for each channel

Constructor Detail

AverageSubtraction

public AverageSubtraction()
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/

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