Class WhistleFragment

java.lang.Object
whistleClassifier.WhistleFragment
All Implemented Interfaces:
WhistleContour

public class WhistleFragment extends Object implements WhistleContour
  • Constructor Details

    • WhistleFragment

      public WhistleFragment(double[] times, double[] freqs)
      Constructor to create a fragment using all of the data passed
      Parameters:
      times - times (seconds)
      freqs - frequencies (Hz)
    • WhistleFragment

      public WhistleFragment(double[] times, double[] freqs, int start, int fragLen)
      Constructor to automatically extract the fragment from a longer segment.
      Parameters:
      times - segment times (seconds)
      freqs - segment frequencies (Hz)
      start - first bin in segment to take
      fragLen - length of fragment to create
    • WhistleFragment

      public WhistleFragment(WhistleContour whistleContour, int start, int fragLen)
      Constructor to automatically extract a fragment from a longer contour.
      Parameters:
      whistleContour - contour to extract fragment from
      start - start position in contour
      fragLen - length of fragment
  • Method Details