|
|
|||||||||||||||||||||
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<O,P,D>
de.lmu.ifi.dbs.elki.distance.distancefunction.SubspaceDistanceFunction<O,P,D>
public class SubspaceDistanceFunction<O extends RealVector<O,?>,P extends Preprocessor<O>,D extends SubspaceDistance<D>>
Provides a distance function to determine a kind of correlation distance between two points, which is a pair consisting of the distance between the two subspaces spanned by the strong eigenvectors of the two points and the affine distance between the two subspaces.
Field Summary | |
---|---|
static AssociationID |
ASSOCIATION_ID
The Assocoiation ID for the association to be set by the preprocessor. |
static String |
DEFAULT_PREPROCESSOR_CLASS
The default preprocessor class name. |
static String |
PREPROCESSOR_CLASS_D
Description for parameter preprocessor. |
static Class<Preprocessor> |
PREPROCESSOR_SUPER_CLASS
The super 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 | |
---|---|
SubspaceDistanceFunction()
Provides a distance function to determine distances between subspaces of equal dimensionality. |
Method Summary | |
---|---|
D |
distance(O o1,
O o2)
Note, that the pca of o1 must have equal ore more strong eigenvectors than the pca of o2. |
D |
distance(O o1,
O o2,
LocalPCA<O> pca1,
LocalPCA<O> 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. |
(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. |
D |
infiniteDistance()
Provides an infinite distance. |
D |
nullDistance()
Provides a null distance. |
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 class de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractPreprocessorBasedDistanceFunction |
---|
getAttributeSettings, getPreprocessor, setDatabase, setParameters |
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 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
Constructor Detail |
---|
public SubspaceDistanceFunction()
Method Detail |
---|
String getDefaultPreprocessorClassName()
getDefaultPreprocessorClassName
in class AbstractPreprocessorBasedDistanceFunction<O extends RealVector<O,?>,P extends Preprocessor<O>,D extends SubspaceDistance<D>>
String getPreprocessorClassDescription()
getPreprocessorClassDescription
in class AbstractPreprocessorBasedDistanceFunction<O extends RealVector<O,?>,P extends Preprocessor<O>,D extends SubspaceDistance<D>>
Class<Preprocessor> getPreprocessorSuperClassName()
getPreprocessorSuperClassName
in class AbstractPreprocessorBasedDistanceFunction<O extends RealVector<O,?>,P extends Preprocessor<O>,D extends SubspaceDistance<D>>
AssociationID getAssociationID()
getAssociationID
in class AbstractPreprocessorBasedDistanceFunction<O extends RealVector<O,?>,P extends Preprocessor<O>,D extends SubspaceDistance<D>>
public D 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 D infiniteDistance()
MeasurementFunction
MeasurementFunction.infiniteDistance()
public D nullDistance()
MeasurementFunction
MeasurementFunction.nullDistance()
public D undefinedDistance()
MeasurementFunction
MeasurementFunction.undefinedDistance()
public D distance(O o1, O o2)
o1
- first DatabaseObjecto2
- second DatabaseObject
DistanceFunction.distance(de.lmu.ifi.dbs.elki.data.DatabaseObject,de.lmu.ifi.dbs.elki.data.DatabaseObject)
public D distance(O o1, O o2, LocalPCA<O> pca1, LocalPCA<O> pca2)
o1
- first DatabaseObjecto2
- second DatabaseObjectpca1
- first PCApca2
- second PCA
|
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |