| Constructor and Description |
|---|
Peak(double pos,
double peakHeight)
Creates a new peak.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Peak o) |
double |
getHeight()
The height of the peak (number of occurrences).
|
double |
getPosition()
The position of the peak in cents.
|
void |
setHeight(double newHeight) |
void |
setPosition(double newPosition) |
public Peak(double pos,
double peakHeight)
pos - the position in centspeakHeight - the height of the peakpublic double getHeight()
public double getPosition()
public void setPosition(double newPosition)
newPosition - public void setHeight(double newHeight)
newHeight -