|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectviper.comparison.distances.DistanceHolder
| Constructor Summary | |
DistanceHolder()
Creates a new instance of DistanceHolder. |
|
| Method Summary | |
java.lang.Object |
clone()
|
double |
get(long i)
Gets the distance at the given frame. |
double |
getAverage()
Gets the average statistic. |
double |
getMaximum()
Gets the max distance. |
double |
getMedian()
Gets the median statistic. |
double |
getMinimum()
Gets the minimum distance. |
double |
getStat(int stat)
Gets the specified statistic. |
void |
set(long start,
long end,
double value)
Sets the value for the given range. |
java.lang.String |
toString()
Gets a space-delimited list of the distances. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DistanceHolder()
| Method Detail |
public java.lang.String toString()
public java.lang.Object clone()
public double getStat(int stat)
stat - a statistic, e.g. Distances.MEAN
public double getAverage()
public double getMedian()
public double getMaximum()
public double getMinimum()
public void set(long start,
long end,
double value)
start - the first instantend - the end instantvalue - the distance value
java.lang.IllegalArgumentException - if start is not less than endpublic double get(long i)
i - the frame
java.lang.IndexOutOfBoundsException - if the value is not set
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||