Package whistleClassifier
Class WhistleFragment
java.lang.Object
whistleClassifier.WhistleFragment
- All Implemented Interfaces:
 WhistleContour
- 
Constructor Summary
ConstructorsConstructorDescriptionWhistleFragment(double[] times, double[] freqs) Constructor to create a fragment using all of the data passedWhistleFragment(double[] times, double[] freqs, int start, int fragLen) Constructor to automatically extract the fragment from a longer segment.WhistleFragment(WhistleContour whistleContour, int start, int fragLen) Constructor to automatically extract a fragment from a longer contour. - 
Method Summary
 
- 
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 takefragLen- length of fragment to create
 - 
WhistleFragment
Constructor to automatically extract a fragment from a longer contour.- Parameters:
 whistleContour- contour to extract fragment fromstart- start position in contourfragLen- length of fragment
 
 - 
 - 
Method Details
- 
getFreqsHz
public double[] getFreqsHz()- Specified by:
 getFreqsHzin interfaceWhistleContour
 - 
getTimesInSeconds
public double[] getTimesInSeconds()- Specified by:
 getTimesInSecondsin interfaceWhistleContour
 
 -