|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.hogent.tarsos.util.histogram.peaks.Peak
public final class Peak
Defines a Peak in a histogram.
Constructor Summary | |
---|---|
Peak(double pos,
double peakHeight)
Creates a new peak. |
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Peak(double pos, double peakHeight)
pos
- the position in centspeakHeight
- the height of the peakMethod Detail |
---|
public double getHeight()
public double getPosition()
public void setPosition(double newPosition)
newPosition
- public void setHeight(double newHeight)
newHeight
- public int compareTo(Peak o)
compareTo
in interface java.lang.Comparable<Peak>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |