|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
D
- the type of Distance used as measurement for comparing database objectsO
- the type of DatabaseObject for which a measurement is provided for comparisonpublic interface MeasurementFunction<O extends DatabaseObject,D extends Distance<D>>
Interface Measurement describes the requirements of any measurement function (e.g. distance function or similarity function), that provides a measurement for comparing database objects.
Method Summary | |
---|---|
D |
infiniteDistance()
Provides an infinite distance. |
boolean |
isInfiniteDistance(D distance)
Returns true, if the given distance is an infinite distance, false otherwise. |
boolean |
isNullDistance(D distance)
Returns true, if the given distance is a null distance, false otherwise. |
boolean |
isUndefinedDistance(D distance)
Returns true, if the given distance is an undefined distance, false otherwise. |
D |
nullDistance()
Provides a null distance. |
String |
requiredInputPattern()
Returns a String as description of the required input format. |
void |
setDatabase(Database<O> database,
boolean verbose,
boolean time)
Set the database that holds the associations for the DatabaseObject for which the measurements should be computed. |
D |
undefinedDistance()
Provides an undefined distance. |
D |
valueOf(String pattern)
Provides a measurement suitable to this measurement function based on the given pattern. |
Methods inherited from interface de.lmu.ifi.dbs.elki.utilities.optionhandling.Parameterizable |
---|
checkGlobalParameterConstraints, collectOptions, getParameters, setParameters, shortDescription |
Method Detail |
---|
void setDatabase(Database<O> database, boolean verbose, boolean time)
database
- the database to be setverbose
- flag to allow verbose messages while performing the methodtime
- flag to request output of performance timeString requiredInputPattern()
D valueOf(String pattern) throws IllegalArgumentException
pattern
- a pattern defining a similarity suitable to this
measurement function
IllegalArgumentException
- if the given pattern is not compatible with the requirements
of this measurement functionD infiniteDistance()
D nullDistance()
D undefinedDistance()
boolean isInfiniteDistance(D distance)
distance
- the distance to be tested on infinity
boolean isNullDistance(D distance)
distance
- the distance to be tested whether it is a null distance
boolean isUndefinedDistance(D distance)
distance
- the distance to be tested whether it is undefined
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |