public class SpectrogramThreshold extends SpecNoiseMethod
Modifier and Type | Field and Description |
---|---|
static int |
OUTPUT_BINARY |
static int |
OUTPUT_INPUT |
static int |
OUTPUT_RAW |
Constructor and Description |
---|
SpectrogramThreshold() |
Modifier and Type | Method and Description |
---|---|
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.
|
getAnnotation
public static final int OUTPUT_BINARY
public static final int OUTPUT_INPUT
public static final int OUTPUT_RAW
public SpecNoiseDialogComponent getDialogComponent()
SpecNoiseMethod
getDialogComponent
in class SpecNoiseMethod
public java.lang.String getName()
SpecNoiseMethod
getName
in class SpecNoiseMethod
public java.lang.String getDescription()
SpecNoiseMethod
getDescription
in class SpecNoiseMethod
public int getDelay()
getDelay
in class SpecNoiseMethod
public java.io.Serializable getParams()
SpecNoiseMethod
getParams
in class SpecNoiseMethod
public boolean initialise(int channelMap)
SpecNoiseMethod
initialise
in class SpecNoiseMethod
public boolean runNoiseReduction(FFTDataUnit fftDataUnit)
SpecNoiseMethod
runNoiseReduction
in class SpecNoiseMethod
public void pickEarlierData(Complex[] earlyData, Complex[] thresholdData)
earlyData
- data to pick from (generally raw input fft data to noise process)binaryChoice
- output from runNoiseReduction()public boolean setParams(java.io.Serializable noiseParams)
SpecNoiseMethod
setParams
in class SpecNoiseMethod
public void fillXMLParameters(org.w3c.dom.Element n)
fillXMLParameters
in class SpecNoiseMethod