|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.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,D> de.lmu.ifi.dbs.elki.distance.distancefunction.correlation.AbstractCorrelationDistanceFunction<V,P,D> de.lmu.ifi.dbs.elki.distance.distancefunction.correlation.PCABasedCorrelationDistanceFunction<V,P,D>
V
- the type of RealVector to compute the distances in betweenP
- the type of Preprocessor usedD
- the type of CorrelationDistance usedpublic class PCABasedCorrelationDistanceFunction<V extends RealVector<V,?>,P extends HiCOPreprocessor<V>,D extends CorrelationDistance<D>>
Provides the correlation distance for real valued vectors.
Field Summary | |
---|---|
private double |
delta
Holds the value of DELTA_PARAM . |
static OptionID |
DELTA_ID
OptionID for DELTA_PARAM |
private static DoubleParameter |
DELTA_PARAM
Parameter to specify the threshold of a distance between a vector q and a given space that indicates that q adds a new dimension to the space, must be a double equal to or greater than 0. |
Fields inherited from class de.lmu.ifi.dbs.elki.distance.distancefunction.correlation.AbstractCorrelationDistanceFunction |
---|
SEPARATOR |
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, logger |
Constructor Summary | |
---|---|
PCABasedCorrelationDistanceFunction()
Provides a PCABasedCorrelationDistanceFunction, adding parameter DELTA_PARAM
to the option handler additionally to parameters of super class. |
Method Summary | |
---|---|
private void |
adjust(Matrix v,
Matrix e_czech,
Matrix vector,
int corrDim)
Inserts the specified vector into the given orthonormal matrix v at column corrDim . |
int |
correlationDistance(PCAFilteredResult pca1,
PCAFilteredResult pca2,
int dimensionality)
Computes the correlation distance between the two subspaces defined by the specified PCAs. |
(package private) D |
correlationDistance(V dv1,
V dv2)
Computes the correlation distance between the two specified vectors. |
private double |
euclideanDistance(V dv1,
V dv2)
Computes the Euclidean distance between the given two vectors. |
AssociationID<?> |
getAssociationID()
Returns the association ID for the association to be set by the preprocessor. |
String |
getDefaultPreprocessorClassName()
Returns the name of the default preprocessor. |
String |
getPreprocessorDescription()
Returns the description for the preprocessor parameter. |
Class<P> |
getPreprocessorSuperClass()
Returns the super class for the preprocessor parameter. |
D |
infiniteDistance()
Provides an infinite distance. |
D |
nullDistance()
Provides a null distance. |
List<String> |
setParameters(List<String> args)
Calls the super method AbstractPreprocessorBasedDistanceFunction#setParameters(args)} and sets additionally the value of the parameter DELTA_PARAM . |
D |
undefinedDistance()
Provides an undefined distance. |
D |
valueOf(String pattern)
Provides a distance suitable to this DistanceFunction based on the given pattern. |
Methods inherited from class de.lmu.ifi.dbs.elki.distance.distancefunction.correlation.AbstractCorrelationDistanceFunction |
---|
distance, shortDescription |
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, addParameterizable, addParameterizable, checkGlobalParameterConstraints, collectOptions, getAttributeSettings, getParameters, rememberParametersExcept, removeOption, removeParameterizable |
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 |
---|
isInfiniteDistance, isNullDistance, isUndefinedDistance, requiredInputPattern |
Methods inherited from interface de.lmu.ifi.dbs.elki.utilities.optionhandling.Parameterizable |
---|
checkGlobalParameterConstraints, collectOptions, getParameters |
Field Detail |
---|
public static final OptionID DELTA_ID
DELTA_PARAM
private static DoubleParameter DELTA_PARAM
Default value: 0.25
Key: -pcabasedcorrelationdf.delta
private double delta
DELTA_PARAM
.
Constructor Detail |
---|
public PCABasedCorrelationDistanceFunction()
DELTA_PARAM
to the option handler additionally to parameters of super class.
Method Detail |
---|
public List<String> setParameters(List<String> args) throws ParameterException
DELTA_PARAM
.
setParameters
in interface Parameterizable
setParameters
in class AbstractPreprocessorBasedDistanceFunction<V extends RealVector<V,?>,P extends HiCOPreprocessor<V>,D extends CorrelationDistance<D>>
args
- parameters to set the attributes accordingly to
ParameterException
- in case of wrong parameter-settingpublic D valueOf(String pattern) throws IllegalArgumentException
pattern
- A pattern defining a distance suitable to this
DistanceFunction
IllegalArgumentException
- if the given pattern is not compatible with the requirements
of this DistanceFunctionpublic D infiniteDistance()
public D nullDistance()
public D undefinedDistance()
D correlationDistance(V dv1, V dv2)
AbstractCorrelationDistanceFunction
correlationDistance
in class AbstractCorrelationDistanceFunction<V extends RealVector<V,?>,P extends HiCOPreprocessor<V>,D extends CorrelationDistance<D>>
dv1
- first RealVectordv2
- second RealVector
public int correlationDistance(PCAFilteredResult pca1, PCAFilteredResult pca2, int dimensionality)
pca1
- first PCApca2
- second PCAdimensionality
- the dimensionality of the data space
private void adjust(Matrix v, Matrix e_czech, Matrix vector, int corrDim)
v
at column corrDim
. After insertion the
matrix v
is orthonormalized and column
corrDim
of matrix e_czech
is set to the
corrDim
-th unit vector..
v
- the orthonormal matrix of the eigenvectorse_czech
- the selection matrix of the strong eigenvectorsvector
- the vector to be insertedcorrDim
- the column at which the vector should be insertedprivate double euclideanDistance(V dv1, V dv2)
dv1
- first NumberVectordv2
- second NumberVector
public String getDefaultPreprocessorClassName()
PreprocessorClient
KnnQueryBasedHiCOPreprocessor
public String getPreprocessorDescription()
PreprocessorClient
public Class<P> getPreprocessorSuperClass()
PreprocessorClient
HiCOPreprocessor
public AssociationID<?> getAssociationID()
PreprocessorClient
AssociationID.LOCAL_PCA
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |