|
|
|||||||||||||||||||||
| 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.distancefunction.AbstractDistanceFunction<O,D>
de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractPreprocessorBasedDistanceFunction<V,P,BitDistance>
de.lmu.ifi.dbs.elki.distance.distancefunction.ERiCDistanceFunction<V,P>
public class ERiCDistanceFunction<V extends RealVector<V,?>,P extends Preprocessor<V>>
Provides a distance function for building the hierarchiy in the ERiC algorithm.
| Field Summary | |
|---|---|
static AssociationID |
ASSOCIATION_ID
The Assocoiation ID for the association to be set by the preprocessor. |
static double |
DEFAULT_DELTA
The default value for delta. |
static String |
DEFAULT_PREPROCESSOR_CLASS
The default preprocessor class name. |
static double |
DEFAULT_TAU
The default value for delta. |
private double |
delta
The threshold for approximate linear dependency. |
static String |
DELTA_D
Description for parameter delta. |
static String |
DELTA_P
Option string for parameter delta. |
static String |
PREPROCESSOR_CLASS_D
Description for parameter preprocessor. |
static Class<Preprocessor> |
PREPROCESSOR_SUPER_CLASS
The super class for the preprocessor. |
private double |
tau
The threshold for parallel subspaces. |
static String |
TAU_D
Description for parameter delta. |
static String |
TAU_P
Option string for parameter delta. |
| 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 | |
|---|---|
ERiCDistanceFunction()
Provides a distance function for the ERiC algorithm. |
|
| Method Summary | |
|---|---|
private boolean |
approximatelyLinearDependent(LocalPCA<V> pca1,
LocalPCA<V> pca2)
Returns true, if the strong eigenvectors of the two specified pcas span up the same space. |
BitDistance |
distance(V o1,
V o2)
Note, that the pca of o1 must have equal ore more strong eigenvectors than the pca of o2. |
BitDistance |
distance(V o1,
V o2,
LocalPCA<V> pca1,
LocalPCA<V> pca2)
Computes the distance between two given DatabaseObjects according to this distance function. |
(package private) 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) String |
getDefaultPreprocessorClassName()
Returns the name of the default preprocessor. |
(package private) String |
getPreprocessorClassDescription()
Returns the description for parameter preprocessor. |
(package private) Class<Preprocessor> |
getPreprocessorSuperClassName()
Returns the super class for the preprocessor. |
BitDistance |
infiniteDistance()
Provides an infinite distance. |
BitDistance |
nullDistance()
Provides a null distance. |
String[] |
setParameters(String[] args)
Sets the values for the parameters delta and preprocessor if specified. |
BitDistance |
undefinedDistance()
Provides an undefined distance. |
BitDistance |
valueOf(String pattern)
Provides a measurement suitable to this measurement function based on the given pattern. |
| Methods inherited from class de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractPreprocessorBasedDistanceFunction |
|---|
getPreprocessor, setDatabase |
| Methods inherited from class de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractDistanceFunction |
|---|
distance, distance, isInfiniteDistance, isNullDistance, isUndefinedDistance |
| 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.MeasurementFunction |
|---|
requiredInputPattern |
| Methods inherited from interface de.lmu.ifi.dbs.elki.utilities.optionhandling.Parameterizable |
|---|
checkGlobalParameterConstraints, description, getParameters, getPossibleOptions, inlineDescription |
| Field Detail |
|---|
public static final double DEFAULT_DELTA
public static final String DELTA_P
public static final String DELTA_D
public static final double DEFAULT_TAU
public static final String TAU_P
public static final String TAU_D
public static final AssociationID ASSOCIATION_ID
public static final Class<Preprocessor> PREPROCESSOR_SUPER_CLASS
public static final String DEFAULT_PREPROCESSOR_CLASS
public static final String PREPROCESSOR_CLASS_D
private double delta
private double tau
| Constructor Detail |
|---|
public ERiCDistanceFunction()
| Method Detail |
|---|
public String[] setParameters(String[] args)
throws ParameterException
AbstractPreprocessorBasedDistanceFunction
setParameters in interface ParameterizablesetParameters in class AbstractPreprocessorBasedDistanceFunction<V extends RealVector<V,?>,P extends Preprocessor<V>,BitDistance>args - parameters to set the attributes accordingly to
ParameterException - in case of wrong parameter-settingParameterizable.setParameters(String[])public List<AttributeSettings> getAttributeSettings()
getAttributeSettings in interface ParameterizablegetAttributeSettings in class AbstractPreprocessorBasedDistanceFunction<V extends RealVector<V,?>,P extends Preprocessor<V>,BitDistance>Parameterizable.getAttributeSettings()String getDefaultPreprocessorClassName()
getDefaultPreprocessorClassName in class AbstractPreprocessorBasedDistanceFunction<V extends RealVector<V,?>,P extends Preprocessor<V>,BitDistance>String getPreprocessorClassDescription()
getPreprocessorClassDescription in class AbstractPreprocessorBasedDistanceFunction<V extends RealVector<V,?>,P extends Preprocessor<V>,BitDistance>Class<Preprocessor> getPreprocessorSuperClassName()
getPreprocessorSuperClassName in class AbstractPreprocessorBasedDistanceFunction<V extends RealVector<V,?>,P extends Preprocessor<V>,BitDistance>AssociationID getAssociationID()
getAssociationID in class AbstractPreprocessorBasedDistanceFunction<V extends RealVector<V,?>,P extends Preprocessor<V>,BitDistance>
public BitDistance valueOf(String pattern)
throws IllegalArgumentException
MeasurementFunction
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 functionMeasurementFunction.valueOf(String)public BitDistance infiniteDistance()
MeasurementFunction
MeasurementFunction.infiniteDistance()public BitDistance nullDistance()
MeasurementFunction
MeasurementFunction.nullDistance()public BitDistance undefinedDistance()
MeasurementFunction
MeasurementFunction.undefinedDistance()
public BitDistance distance(V o1,
V o2)
o1 - first DatabaseObjecto2 - second DatabaseObject
DistanceFunction.distance(de.lmu.ifi.dbs.elki.data.DatabaseObject, de.lmu.ifi.dbs.elki.data.DatabaseObject)
public BitDistance distance(V o1,
V o2,
LocalPCA<V> pca1,
LocalPCA<V> pca2)
o1 - first DatabaseObjecto2 - second DatabaseObjectpca1 - first PCApca2 - second PCA
private boolean approximatelyLinearDependent(LocalPCA<V> pca1,
LocalPCA<V> pca2)
pca1 - first PCApca2 - second PCA
|
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||||