|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object viper.comparison.distances.Distances.HelperDistance viper.comparison.distances.Distances.HelperMeasureDistance
Converts one of the value distance function objects
into a MeasureDistance
.
Field Summary | |
protected Distances.QuickValueDistance |
dist
|
Fields inherited from interface viper.comparison.distances.Distance |
BALANCED, CAND_V_TARGS, OVERALL_MEAN, OVERALL_SUM, TARG_V_CANDS |
Constructor Summary | |
Distances.HelperMeasureDistance(Distances.QuickValueDistance d,
java.lang.String name,
int type,
java.lang.String explanation,
boolean isDistance)
Constructs a new measure distance from the given function object and parameters. |
|
Distances.HelperMeasureDistance(Distances.SmartValueDistance d,
java.lang.String name,
int type,
java.lang.String explanation,
boolean isDistance)
Constructs a new measure distance from the given function object and parameters. |
|
Distances.HelperMeasureDistance(Distances.ValueDistance d,
java.lang.String name,
int type,
java.lang.String explanation,
boolean isDistance)
Constructs a new measure distance from the given function object and parameters. |
Method Summary | |
boolean |
equals(java.lang.Object o)
|
java.lang.Number |
getDistance(Measurable.Difference D)
Gets the distance using cached distance data. |
java.lang.Number |
getDistance(Measurable alpha,
Measurable beta,
CanonicalFileDescriptor cfd)
Compute the distance. |
java.lang.Number |
getDistance(Measurable alpha,
Measurable beta,
Measurable blackout,
Measurable ignore,
CanonicalFileDescriptor cfd)
Compute the distance. |
java.lang.String |
getExplanation()
An explanatory message, like "Pixels matched", or "Localized Object Count Recall". |
int |
getType()
Get what type of metric this is, per the list of static int types. |
int |
hashCode()
|
boolean |
isDistance()
Determines if this is a distance or a similarity quotient. |
java.lang.String |
toString()
Get the EPF name of the metric. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface viper.comparison.distances.Distance |
getDistance, getExplanation, getType, isDistance, toString |
Field Detail |
protected Distances.QuickValueDistance dist
Constructor Detail |
public Distances.HelperMeasureDistance(Distances.ValueDistance d, java.lang.String name, int type, java.lang.String explanation, boolean isDistance)
d
- the distance functorname
- the name of the distance metrictype
- the category of distance, e.g. Distance.BALANCED
explanation
- a long explanation of the distance, for
helper documentation and verbose outputisDistance
- determines if the distance is really a distance
or if it is a score (bigger is better)public Distances.HelperMeasureDistance(Distances.SmartValueDistance d, java.lang.String name, int type, java.lang.String explanation, boolean isDistance)
d
- the distance functorname
- the name of the distance metrictype
- the category of distance, e.g. Distance.BALANCED
explanation
- a long explanation of the distance, for
helper documentation and verbose outputisDistance
- determines if the distance is really a distance
or if it is a score (bigger is better)public Distances.HelperMeasureDistance(Distances.QuickValueDistance d, java.lang.String name, int type, java.lang.String explanation, boolean isDistance)
d
- the distance functorname
- the name of the distance metrictype
- the category of distance, e.g. Distance.BALANCED
explanation
- a long explanation of the distance, for
helper documentation and verbose outputisDistance
- determines if the distance is really a distance
or if it is a score (bigger is better)Method Detail |
public java.lang.Number getDistance(Measurable alpha, Measurable beta, CanonicalFileDescriptor cfd)
MeasureDistance
getDistance
in interface MeasureDistance
alpha
- the alpha valuebeta
- the beta valuecfd
- the file descriptor that alpha and beta are defined within
public java.lang.Number getDistance(Measurable alpha, Measurable beta, Measurable blackout, Measurable ignore, CanonicalFileDescriptor cfd) throws IgnoredValueException
MeasureDistance
getDistance
in interface MeasureDistance
alpha
- the first valuebeta
- the second valueblackout
- the bad regionignore
- the region to ignorecfd
- the file on which the measurables are defined
IgnoredValueException
- when the ignored region is such that
it prevents evaluation of the distance.public int getType()
Distance
getType
in interface Distance
public java.lang.String getExplanation()
Distance
getExplanation
in interface Distance
public java.lang.String toString()
Distance
toString
in interface Distance
public java.lang.Number getDistance(Measurable.Difference D)
Distance
IgnoredValueException
s and savings
on recomputing, for example, the area of polygons.
Calling
getDistance (alpha, beta, blackout, ignore)
should have the same effect as
getDistance (alpha.getDifference (beta, blackout, ignore))
getDistance
in interface Distance
D
- the distance of the difference
public int hashCode()
public boolean equals(java.lang.Object o)
public boolean isDistance()
Distance
isDistance
in interface Distance
true
when 0 indicates a perfect match, and
distance varies proportionally to difference
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |