Package detectionPlotFX.clickTrainDDPlot
Class CTSpectrumPlot
- All Implemented Interfaces:
DetectionPlot<CTDataUnit>
Average spectrum plot for click trains.
- Author:
- Jamie Macaulay
-
Field Summary
Fields inherited from interface detectionPlotFX.layout.DetectionPlot
SCROLLPANE_DRAW, STANDARD_DRAW
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble[][]
getCepstrum
(CTDataUnit data, int min, int max) Get the cepstrum for the detectiongetName()
Get the name of the plot e.g.double[][]
getPowerSpectrum
(CTDataUnit data, int min, int max) Get the power spectrum for the detectionjavafx.scene.layout.Pane
Get the settings pane for the particular plot.void
setupAxis
(CTDataUnit data, double sR, DetectionPlotProjector plotProjector) Setup the axis.Methods inherited from class detectionPlotFX.plots.SpectrumPlot
drawLogSpectrum, getSampleRate, getSpectrumParams, isFillSpectrum, paintPlot, reDrawLastUnit, setFillSpectrum, setupPlot
-
Constructor Details
-
CTSpectrumPlot
-
-
Method Details
-
setupAxis
Description copied from interface:DetectionPlot
Setup the axis. This is called before paintPlot. Ensures axis are correct values- Specified by:
setupAxis
in interfaceDetectionPlot<CTDataUnit>
- Overrides:
setupAxis
in classSpectrumPlot<CTDataUnit>
- Parameters:
data
- - the data of every channel. e.g. might be a waveform with each point representing a sample.sR
- - the sample rate. Primarily used to convert bins into time values.
-
getPowerSpectrum
Description copied from class:SpectrumPlot
Get the power spectrum for the detection- Specified by:
getPowerSpectrum
in classSpectrumPlot<CTDataUnit>
- Parameters:
data
- - the pamDetection- Returns:
- the power spectrum for each channel.
-
getCepstrum
Description copied from class:SpectrumPlot
Get the cepstrum for the detection- Specified by:
getCepstrum
in classSpectrumPlot<CTDataUnit>
- Parameters:
data
- - the pamDetection- Returns:
- the cepstrum for each channel.
-
getName
Description copied from interface:DetectionPlot
Get the name of the plot e.g. waveform, spectrum etc.- Specified by:
getName
in interfaceDetectionPlot<CTDataUnit>
- Overrides:
getName
in classSpectrumPlot<CTDataUnit>
-
getSettingsPane
public javafx.scene.layout.Pane getSettingsPane()Description copied from interface:DetectionPlot
Get the settings pane for the particular plot. This sits on the right hand side of the display inside a hiding pane.- Specified by:
getSettingsPane
in interfaceDetectionPlot<CTDataUnit>
- Overrides:
getSettingsPane
in classSpectrumPlot<CTDataUnit>
- Returns:
- a pane with controls for changing settings in a node.
-