|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable
de.lmu.ifi.dbs.elki.distance.AbstractMeasurementFunction<O,D>
D
- the type of Distance used as measurement for comparing database objectsO
- the type of DatabaseObject for which a measurement is provided for comparisonpublic abstract class AbstractMeasurementFunction<O extends DatabaseObject,D extends Distance<D>>
Abstract implementation of interface MeasurementFunction
that provides some methods
valid for any extending class.
Field Summary | |
---|---|
private Database<O> |
database
The database that holds the objects for which the measurements should be computed. |
static String |
INFINITY_PATTERN
Indicates an infinity pattern. |
private Pattern |
pattern
A pattern to define the required input format. |
Fields inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable |
---|
optionHandler |
Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
---|
debug, logger |
Constructor Summary | |
---|---|
protected |
AbstractMeasurementFunction()
Provides an abstract MeasurementFunction. |
protected |
AbstractMeasurementFunction(Pattern pattern)
Provides an abstract MeasurementFunction based on the given pattern. |
Method Summary | |
---|---|
protected Database<O> |
getDatabase()
Returns the database holding the objects for which the measurements should be computed. |
protected boolean |
matches(String pattern)
Returns true if the given pattern matches the pattern defined, false otherwise. |
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. |
protected void |
setRequiredInputPattern(Pattern pattern)
Sets the required input pattern. |
String |
shortDescription()
Returns the required input pattern. |
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable |
---|
addOption, addParameterizable, addParameterizable, checkGlobalParameterConstraints, collectOptions, getAttributeSettings, getParameters, rememberParametersExcept, removeOption, removeParameterizable, setParameters |
Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
---|
debugFine, debugFiner, debugFinest, exception, progress, verbose, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.lmu.ifi.dbs.elki.distance.MeasurementFunction |
---|
infiniteDistance, isInfiniteDistance, isNullDistance, isUndefinedDistance, nullDistance, undefinedDistance, valueOf |
Methods inherited from interface de.lmu.ifi.dbs.elki.utilities.optionhandling.Parameterizable |
---|
checkGlobalParameterConstraints, collectOptions, getParameters, setParameters |
Field Detail |
---|
public static final String INFINITY_PATTERN
private Pattern pattern
private Database<O extends DatabaseObject> database
Constructor Detail |
---|
protected AbstractMeasurementFunction(Pattern pattern)
pattern
- a pattern to define the required input formatprotected AbstractMeasurementFunction()
Method Detail |
---|
public final String requiredInputPattern()
MeasurementFunction
requiredInputPattern
in interface MeasurementFunction<O extends DatabaseObject,D extends Distance<D>>
public void setDatabase(Database<O> database, boolean verbose, boolean time)
MeasurementFunction
setDatabase
in interface MeasurementFunction<O extends DatabaseObject,D extends Distance<D>>
database
- Databaseverbose
- unusedtime
- unusedprotected Database<O> getDatabase()
protected final boolean matches(String pattern)
pattern
- the pattern to be matched with the pattern defined
protected final void setRequiredInputPattern(Pattern pattern)
pattern
- the pattern to be setpublic String shortDescription()
shortDescription
in interface Parameterizable
shortDescription
in class AbstractParameterizable
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |