|
|||||||||||
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.HelperAttrDistance
Converts one of the value distance function objects
into a AttrDistance
.
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.HelperAttrDistance(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.HelperAttrDistance(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.HelperAttrDistance(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(Attribute alpha,
FrameSpan alphaSpan,
Attribute beta,
FrameSpan betaSpan,
Attribute blackout,
FrameSpan blackoutSpan,
Attribute ignore,
FrameSpan ignoreSpan,
int frame,
CanonicalFileDescriptor cfd)
Compute the distance, with blackout and ignore. |
java.lang.Number |
getDistance(Attribute alpha,
FrameSpan alphaSpan,
Attribute beta,
FrameSpan betaSpan,
int frame,
CanonicalFileDescriptor cfd)
Compute the distance. |
java.lang.Number |
getDistance(Measurable.Difference D)
Gets the distance using cached distance data. |
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.HelperAttrDistance(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.HelperAttrDistance(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.HelperAttrDistance(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(Attribute alpha, FrameSpan alphaSpan, Attribute beta, FrameSpan betaSpan, int frame, CanonicalFileDescriptor cfd)
AttrDistance
getDistance
in interface AttrDistance
alpha
- the alpha attributealphaSpan
- the alpha attribute's spanbeta
- the beta attributebetaSpan
- the beta attribute's spanframe
- the frame to get the distance incfd
- the source media
public java.lang.Number getDistance(Attribute alpha, FrameSpan alphaSpan, Attribute beta, FrameSpan betaSpan, Attribute blackout, FrameSpan blackoutSpan, Attribute ignore, FrameSpan ignoreSpan, int frame, CanonicalFileDescriptor cfd) throws IgnoredValueException
AttrDistance
null
if there is nothing to black out or ignore.
getDistance
in interface AttrDistance
alpha
- the alpha attributealphaSpan
- the alpha attribute's spanbeta
- the beta attributebetaSpan
- the beta attribute's spanblackout
- the blackout regionblackoutSpan
- the blackout region's spanignore
- the region to ignoreignoreSpan
- the ignored region's spanframe
- the frame to get the distance incfd
- the source media
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 |