|
|
|||||||||||||||||||||
| 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>
public abstract class AbstractMeasurementFunction<O extends DatabaseObject,D extends Distance<D>>
Abstract Measurement Function provides some methods valid for any extending class.
| Field Summary | |
|---|---|
private Database<O> |
database
The database that holds the DatabaseObject for which the distances 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 |
| 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. |
| Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable |
|---|
addOption, checkGlobalParameterConstraints, deleteOption, description, description, description, getAttributeSettings, getParameters, getParameterValue, getPossibleOptions, inlineDescription, isSet, setParameters, setParameters |
| Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
|---|
debugFine, debugFiner, debugFinest, exception, message, progress, progress, progress, verbose, 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, description, getAttributeSettings, getParameters, getPossibleOptions, inlineDescription, 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>>MeasurementFunction.requiredInputPattern()
public void setDatabase(Database<O> database,
boolean verbose,
boolean time)
MeasurementFunction
setDatabase in interface MeasurementFunction<O extends DatabaseObject,D extends Distance<D>>database - the database to be setverbose - flag to allow verbose messages while performing the methodtime - flag to request output of performance timeMeasurementFunction.setDatabase(de.lmu.ifi.dbs.elki.database.Database, boolean, boolean)protected 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 set
|
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||||