Class Whsitle2Spectrum
java.lang.Object
rawDeepLearningClassifier.dlClassification.delphinID.Whsitle2Spectrum
Functions to convert a group fo whistle contours to an average spectrum.
- 
Nested Class Summary
Nested Classes - 
Constructor Summary
ConstructorsConstructorDescriptionWhsitle2Spectrum(SegmenterDetectionGroup whistleGroups, double[] freqLimits, double minFragSize) Whsitle2Spectrum(SegmenterDetectionGroup whistleGroups, Whsitle2Spectrum.Whistle2spectrumParams transformParams)  - 
Method Summary
Modifier and TypeMethodDescriptionstatic double[][]concatWhistleContours(ArrayList<double[][]> points) Convert an ArrayList of individual contours to a single list of time and frequency values of all contours.org.jamdev.jpamutils.spectrum.SpectrumvoidsetSpectrum(org.jamdev.jpamutils.spectrum.Spectrum spectrum) static double[]whistle2AverageArray(double[][] whistleValues, double startseg, double seglen, double[] freqLimits) Convert whistle contours to an average normalised spectrumorg.jamdev.jpamutils.spectrum.Spectrumwhistle2Spectrum(SegmenterDetectionGroup whistleGroups, double[] freqLimits, double minFragSize) Convert whistles to a spectrum. 
- 
Constructor Details
- 
Whsitle2Spectrum
public Whsitle2Spectrum(SegmenterDetectionGroup whistleGroups, double[] freqLimits, double minFragSize)  - 
Whsitle2Spectrum
public Whsitle2Spectrum(SegmenterDetectionGroup whistleGroups, Whsitle2Spectrum.Whistle2spectrumParams transformParams)  
 - 
 - 
Method Details
- 
whistle2Spectrum
public org.jamdev.jpamutils.spectrum.Spectrum whistle2Spectrum(SegmenterDetectionGroup whistleGroups, double[] freqLimits, double minFragSize) Convert whistles to a spectrum.- Parameters:
 freqLimits- - the frequency limits for the spectrum.minFragSize- - the minimum fragment length in seconds.whistleValues- - whistle values.startseg- - the start segment in seconds.seglen- - the segment length in seconds.- Returns:
 - the average spectrum.
 
 - 
concatWhistleContours
Convert an ArrayList of individual contours to a single list of time and frequency values of all contours.- Parameters:
 points- - individual and moan contours with each point time (seconds) and frequency (Hz).- Returns:
 - the concatonated whistle and moan contours with each point time (seconds) and frequency (Hz).
 
 - 
whistle2AverageArray
public static double[] whistle2AverageArray(double[][] whistleValues, double startseg, double seglen, double[] freqLimits) Convert whistle contours to an average normalised spectrum- Parameters:
 whistleValues- - the whistle contour values (Column 1 is time in seconds and column 2 is frequency).startseg- - the start segment in seconds.seglen- - the segment length in seconds.freqLimits- - the frequency limits for the spectrum.- Returns:
 - the average spectrum.
 
 - 
getSpectrum
public org.jamdev.jpamutils.spectrum.Spectrum getSpectrum() - 
setSpectrum
public void setSpectrum(org.jamdev.jpamutils.spectrum.Spectrum spectrum)  
 -