viper.comparison.distances
Interface MeasureDistance
- All Superinterfaces:
- Distance
- All Known Implementing Classes:
- Distances.HelperMeasureDistance
- public interface MeasureDistance
- extends Distance
Like Filterable, Distances are a way of associating
distance with data.
getDistance
public java.lang.Number getDistance(Measurable alpha,
Measurable beta,
CanonicalFileDescriptor cfd)
- Compute the distance. Only defined for static
attributes and the like (read: FrameSpan).
- Parameters:
alpha
- the alpha valuebeta
- the beta valuecfd
- the file descriptor that alpha and beta are defined within
- Returns:
- the distance between alpha and beta
getDistance
public java.lang.Number getDistance(Measurable alpha,
Measurable beta,
Measurable blackout,
Measurable ignore,
CanonicalFileDescriptor cfd)
throws IgnoredValueException
- Compute the distance. Only defined for static
attributes and the like (read: FrameSpan).
This one includes blackout and ignore
parameters - blackouts apply to regions
that are losses, and ignore are for
regions that are don't-care. For example,
"scene" data may be marked as don't-care,
or frames that don't meat a certain metric
are qualified as blackout.
- Parameters:
alpha
- the first valuebeta
- the second valueblackout
- the bad regionignore
- the region to ignorecfd
- the file on which the measurables are defined
- Returns:
- the distance between alpha and beta, given the
constraints
- Throws:
IgnoredValueException
- when the ignored region is such that
it prevents evaluation of the distance.