java.lang.Object
rawDeepLearningClassifier.dlClassification.delphinID.Whsitle2Spectrum

public class Whsitle2Spectrum extends Object
Functions to convert a group fo whistle contours to an average spectrum.
  • Constructor Details Link icon

  • Method Details Link icon

    • whistle2Spectrum Link icon

      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 Link icon

      public static double[][] concatWhistleContours(ArrayList<double[][]> points)
      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 Link icon

      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 Link icon

      public org.jamdev.jpamutils.spectrum.Spectrum getSpectrum()
    • setSpectrum Link icon

      public void setSpectrum(org.jamdev.jpamutils.spectrum.Spectrum spectrum)