|
|
|||||||||||||||||||||
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>
de.lmu.ifi.dbs.elki.distance.similarityfunction.AbstractSimilarityFunction<O,D>
de.lmu.ifi.dbs.elki.distance.similarityfunction.AbstractPreprocessorBasedSimilarityFunction<O,P,D>
public abstract class AbstractPreprocessorBasedSimilarityFunction<O extends DatabaseObject,P extends Preprocessor<O>,D extends Distance<D>>
Abstract super class for distance functions needing a preprocessor.
Field Summary | |
---|---|
private PreprocessorHandler<O,P> |
preprocessorHandler
The handler class for the preprocessor. |
Fields inherited from class de.lmu.ifi.dbs.elki.distance.AbstractMeasurementFunction |
---|
INFINITY_PATTERN |
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 | |
---|---|
AbstractPreprocessorBasedSimilarityFunction(Pattern pattern)
Provides a super class for distance functions needing a preprocessor |
Method Summary | |
---|---|
(package private) abstract AssociationID |
getAssociationID()
Returns the assocoiation ID for the association to be set by the preprocessor. |
List<AttributeSettings> |
getAttributeSettings()
Returns the parameter setting of the attributes. |
(package private) abstract String |
getDefaultPreprocessorClassName()
Returns the name of the default preprocessor. |
P |
getPreprocessor()
Returns the preprocessor of this distance function. |
(package private) abstract String |
getPreprocessorClassDescription()
Returns the description for parameter preprocessor. |
(package private) abstract Class<? extends Preprocessor> |
getPreprocessorSuperClassName()
Returns the super class for the preprocessor. |
void |
setDatabase(Database<O> database,
boolean verbose,
boolean time)
Runs the preprocessor on the database. |
String[] |
setParameters(String[] args)
Sets the values for the parameters delta and preprocessor if specified. |
Methods inherited from class de.lmu.ifi.dbs.elki.distance.similarityfunction.AbstractSimilarityFunction |
---|
similarity, similarity |
Methods inherited from class de.lmu.ifi.dbs.elki.distance.AbstractMeasurementFunction |
---|
getDatabase, matches, requiredInputPattern, setRequiredInputPattern |
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable |
---|
addOption, checkGlobalParameterConstraints, deleteOption, description, description, description, getParameters, getParameterValue, getPossibleOptions, inlineDescription, isSet, 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.similarityfunction.SimilarityFunction |
---|
similarity |
Methods inherited from interface de.lmu.ifi.dbs.elki.distance.MeasurementFunction |
---|
infiniteDistance, isInfiniteDistance, isNullDistance, isUndefinedDistance, nullDistance, requiredInputPattern, undefinedDistance, valueOf |
Methods inherited from interface de.lmu.ifi.dbs.elki.utilities.optionhandling.Parameterizable |
---|
checkGlobalParameterConstraints, description, getParameters, getPossibleOptions, inlineDescription |
Field Detail |
---|
private final PreprocessorHandler<O extends DatabaseObject,P extends Preprocessor<O>> preprocessorHandler
Constructor Detail |
---|
public AbstractPreprocessorBasedSimilarityFunction(Pattern pattern)
pattern
- a pattern to define the required input formatMethod Detail |
---|
public void setDatabase(Database<O> database, boolean verbose, boolean time)
setDatabase
in interface MeasurementFunction<O extends DatabaseObject,D extends Distance<D>>
setDatabase
in class AbstractMeasurementFunction<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)
public String[] setParameters(String[] args) throws ParameterException
setParameters
in interface Parameterizable
setParameters
in class AbstractParameterizable
args
- parameters to set the attributes accordingly to
ParameterException
- in case of wrong parameter-settingParameterizable.setParameters(String[])
public List<AttributeSettings> getAttributeSettings()
getAttributeSettings
in interface Parameterizable
getAttributeSettings
in class AbstractParameterizable
Parameterizable.getAttributeSettings()
public P getPreprocessor()
abstract String getDefaultPreprocessorClassName()
abstract String getPreprocessorClassDescription()
abstract Class<? extends Preprocessor> getPreprocessorSuperClassName()
abstract AssociationID getAssociationID()
|
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |