Package whistleDetector
Class WhistleShape
java.lang.Object
whistleDetector.WhistleShape
- All Implemented Interfaces:
 Comparable<WhistleShape>
- Author:
 - Doug Gillespie Structure for potential whistles created by the WhistleLinker
 
- 
Method Summary
Modifier and TypeMethodDescriptionvoidaddPeak(WhistlePeak peak) Add a new peak to the contourintCompare this whistle to that of another whistledoubleintintGetPeak(int iP) Get the reference ot a peak at a specific referenceintvoidsetDBAmplitude(double amplitude)  
- 
Method Details
- 
addPeak
Add a new peak to the contour- Parameters:
 peak- reference to a WhistlePeak- See Also:
 
 - 
getSliceCount
public int getSliceCount()- Returns:
 - The total number of FFT time partitions included in the contour
 
 - 
GetPeak
Get the reference ot a peak at a specific reference- Parameters:
 iP- Peak index within the contour- Returns:
 - peak reference
 - See Also:
 
 - 
compareTo
Compare this whistle to that of another whistle- Specified by:
 compareToin interfaceComparable<WhistleShape>- Parameters:
 w- Reference to a different Whistle- Returns:
 - 1 if this whistle is the longer of the two -1 otherwise.
 
 - 
getLastPeak
 - 
getMaxFreq
public int getMaxFreq() - 
getMinFreq
public int getMinFreq() - 
getDBAmplitude
public double getDBAmplitude()- Returns:
 - Returns the dBAmplitude.
 
 - 
setDBAmplitude
public void setDBAmplitude(double amplitude) - Parameters:
 amplitude- The dBAmplitude to set.
 
 -