|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vividsolutions.jcs.conflate.polygonmatch.Histogram
Generic model for a bar graph.
| Constructor Summary | |
Histogram(int binCount)
Creates a Histogram with the given number of bins. |
|
| Method Summary | |
void |
add(Histogram other)
Adds another Histogram's bin scores to this Histogram's bin scores. |
void |
addToBinScore(int i,
double score)
Adds a score to the ith bin. |
int |
getBinCount()
Returns the number of bins. |
double |
getBinScore(int i)
Returns the score for the ith bin. |
double |
getTotalScore()
Adds the scores from all the bins. |
double |
symDiff(Histogram other)
Returns the symmetric difference between this Histogram and another Histogram. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Histogram(int binCount)
binCount - the number of bins| Method Detail |
public void addToBinScore(int i,
double score)
i - 0, 1, 2, ...score - the amount by which the ith bin will be incrementedpublic double getBinScore(int i)
i - 0, 1, 2, ...
public double getTotalScore()
public int getBinCount()
public double symDiff(Histogram other)
other - the Histogram with which the symmetric difference will be
computed
public void add(Histogram other)
other - the Histogram whose scores will be added to this Histogram
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||