Class TemplateSpectrumPane.SpectrumTemplatePlot
java.lang.Object
detectionPlotFX.plots.SpectrumPlot<SpectrumTemplateDataUnit>
clickTrainDetector.layout.classification.templateClassifier.TemplateSpectrumPane.SpectrumTemplatePlot
- All Implemented Interfaces:
DetectionPlot<SpectrumTemplateDataUnit>
- Enclosing class:
TemplateSpectrumPane
public class TemplateSpectrumPane.SpectrumTemplatePlot
extends SpectrumPlot<SpectrumTemplateDataUnit>
Plot for a spectrum template.
- Author:
- Jamie Macaulay
-
Field Summary
Fields inherited from interface detectionPlotFX.layout.DetectionPlot
SCROLLPANE_DRAW, STANDARD_DRAW
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble[][]
getCepstrum
(SpectrumTemplateDataUnit data, int start, int end) Get the cepstrum for the detectiondouble[][]
getPowerSpectrum
(SpectrumTemplateDataUnit data, int start, int end) Get the power spectrum for the detectiondouble
Get the sample rate in samples per second of the last data unit.Methods inherited from class detectionPlotFX.plots.SpectrumPlot
drawLogSpectrum, getName, getSettingsPane, getSpectrumParams, isFillSpectrum, paintPlot, reDrawLastUnit, setFillSpectrum, setupAxis, setupPlot
-
Constructor Details
-
SpectrumTemplatePlot
-
-
Method Details
-
getPowerSpectrum
Description copied from class:SpectrumPlot
Get the power spectrum for the detection- Specified by:
getPowerSpectrum
in classSpectrumPlot<SpectrumTemplateDataUnit>
- Parameters:
data
- - the pamDetection- Returns:
- the power spectrum for each channel.
-
getSampleRate
Description copied from class:SpectrumPlot
Get the sample rate in samples per second of the last data unit.- Overrides:
getSampleRate
in classSpectrumPlot<SpectrumTemplateDataUnit>
- Returns:
- the sample rate in samples per second.
-
getCepstrum
Description copied from class:SpectrumPlot
Get the cepstrum for the detection- Specified by:
getCepstrum
in classSpectrumPlot<SpectrumTemplateDataUnit>
- Parameters:
data
- - the pamDetection- Returns:
- the cepstrum for each channel.
-