public class WhistleFragment extends java.lang.Object implements WhistleContour
Constructor and Description |
---|
WhistleFragment(double[] times,
double[] freqs)
Constructor to create a fragment using all of the
data passed
|
WhistleFragment(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.
|
Modifier and Type | Method and Description |
---|---|
double[] |
getFreqsHz() |
double[] |
getTimesInSeconds() |
public WhistleFragment(double[] times, double[] freqs)
times
- times (seconds)freqs
- frequencies (Hz)public WhistleFragment(double[] times, double[] freqs, int start, int fragLen)
times
- segment times (seconds)freqs
- segment frequencies (Hz)start
- first bin in segment to takefragLen
- length of fragment to createpublic WhistleFragment(WhistleContour whistleContour, int start, int fragLen)
whistleContour
- contour to extract fragment fromstart
- start position in contourfragLen
- length of fragmentpublic double[] getFreqsHz()
getFreqsHz
in interface WhistleContour
public double[] getTimesInSeconds()
getTimesInSeconds
in interface WhistleContour