spectrogramNoiseReduction.medianFilter
Class SpectrogramMedianFilter

java.lang.Object
  extended by spectrogramNoiseReduction.SpecNoiseMethod
      extended by spectrogramNoiseReduction.medianFilter.SpectrogramMedianFilter

public class SpectrogramMedianFilter
extends SpecNoiseMethod


Field Summary
private  double[] filterOut
           
private  double[] medData
           
(package private)  MedianFilter medianFilter
           
(package private)  MedianFilterDialogBits medianFilterDialogBits
           
(package private)  MedianFilterParams medianFilterParams
           
 
Constructor Summary
SpectrogramMedianFilter()
           
 
Method Summary
private  double[] checkAlloc(double[] array, int len)
           
 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

medianFilterParams

MedianFilterParams medianFilterParams

medianFilterDialogBits

MedianFilterDialogBits medianFilterDialogBits

medianFilter

MedianFilter medianFilter

medData

private double[] medData

filterOut

private double[] filterOut
Constructor Detail

SpectrogramMedianFilter

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

checkAlloc

private double[] checkAlloc(double[] array,
                            int len)

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