|
|
|||||||||||||||||||||
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.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,PCACorrelationDistance> de.lmu.ifi.dbs.elki.distance.distancefunction.correlation.PCABasedCorrelationDistanceFunction<V,P>
V
- the type of NumberVector to compute the distances in betweenP
- the type of Preprocessor usedpublic class PCABasedCorrelationDistanceFunction<V extends NumberVector<V,?>,P extends LocalPCAPreprocessor<V>>
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 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.AbstractMeasurementFunction |
---|
distanceFactory |
Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
---|
debug, logger |
Constructor Summary | |
---|---|
PCABasedCorrelationDistanceFunction(Parameterization config)
Constructor, adhering to Parameterizable |
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. |
protected PCACorrelationDistance |
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. |
Class<?> |
getDefaultPreprocessorClass()
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. |
Methods inherited from class de.lmu.ifi.dbs.elki.distance.distancefunction.correlation.AbstractCorrelationDistanceFunction |
---|
distance |
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 |
Methods inherited from class de.lmu.ifi.dbs.elki.distance.AbstractMeasurementFunction |
---|
getDatabase, getDistanceFactory, infiniteDistance, nullDistance, undefinedDistance, valueOf |
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.distancefunction.DistanceFunction |
---|
distance, distance, distance |
Methods inherited from interface de.lmu.ifi.dbs.elki.distance.MeasurementFunction |
---|
getDistanceFactory, infiniteDistance, nullDistance, setDatabase, undefinedDistance, valueOf |
Field Detail |
---|
public static final OptionID DELTA_ID
DELTA_PARAM
private final DoubleParameter DELTA_PARAM
Default value: 0.25
Key: -pcabasedcorrelationdf.delta
private double delta
DELTA_PARAM
.
Constructor Detail |
---|
public PCABasedCorrelationDistanceFunction(Parameterization config)
Parameterizable
config
- ParameterizationMethod Detail |
---|
protected PCACorrelationDistance correlationDistance(V dv1, V dv2)
AbstractCorrelationDistanceFunction
correlationDistance
in class AbstractCorrelationDistanceFunction<V extends NumberVector<V,?>,P extends LocalPCAPreprocessor<V>,PCACorrelationDistance>
dv1
- first vectordv2
- second vector
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 FeatureVectordv2
- second FeatureVector
public Class<?> getDefaultPreprocessorClass()
PreprocessorClient
getDefaultPreprocessorClass
in interface PreprocessorClient<P extends LocalPCAPreprocessor<V>,V extends NumberVector<V,?>>
KnnQueryBasedLocalPCAPreprocessor
public String getPreprocessorDescription()
PreprocessorClient
getPreprocessorDescription
in interface PreprocessorClient<P extends LocalPCAPreprocessor<V>,V extends NumberVector<V,?>>
public Class<P> getPreprocessorSuperClass()
PreprocessorClient
getPreprocessorSuperClass
in interface PreprocessorClient<P extends LocalPCAPreprocessor<V>,V extends NumberVector<V,?>>
LocalPCAPreprocessor
public AssociationID<?> getAssociationID()
PreprocessorClient
getAssociationID
in interface PreprocessorClient<P extends LocalPCAPreprocessor<V>,V extends NumberVector<V,?>>
AssociationID.LOCAL_PCA
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |