|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface for a data type that knows its own metric objects.
Nested Class Summary | |
static interface |
Measurable.Difference
For attributes that have several different distance metrics, it is often convenient to save some calculations; this interface is for keeping the computed data around for a bit. |
Method Summary | |
Measurable.Difference |
getDifference(Measurable beta,
Measurable blackout,
Measurable ignore,
CanonicalFileDescriptor cfd)
Not optimized version. |
Measurable.Difference |
getDifference(Measurable beta,
Measurable blackout,
Measurable ignore,
CanonicalFileDescriptor cfd,
Measurable.Difference old)
For performance reasons, takes an optional (could be null) Measurable.Difference to replace the data from. |
java.lang.String |
getType()
Gets the type name. |
Method Detail |
public java.lang.String getType()
public Measurable.Difference getDifference(Measurable beta, Measurable blackout, Measurable ignore, CanonicalFileDescriptor cfd, Measurable.Difference old) throws IgnoredValueException
getDistance (alpha, beta, blackout, ignore)
should
have the same effect as
getDistance (alpha.getDifference (beta, blackout, ignore))
(Except for if alpha is null... then it will use
Distances.DefaultDifference
beta
- the difference to get againstblackout
- the measurable to count as badignore
- the measurable region to ignorecfd
- the media file descriptorold
- an old difference to copy into, if possible, like the array
passed to list.toArray()
IgnoredValueException
- if everything is ignoredpublic Measurable.Difference getDifference(Measurable beta, Measurable blackout, Measurable ignore, CanonicalFileDescriptor cfd) throws IgnoredValueException
getDifference (..., null)
.
beta
- the value to subtract/get the difference fromblackout
- the bad regionignore
- the ignored regioncfd
- the media's information
IgnoredValueException
- if this and beta are totally ignoredgetDifference(Measurable, Measurable, Measurable,
CanonicalFileDescriptor, Measurable.Difference)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |