|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.data.model.CorrelationAnalysisSolution<V>
V
- the type of NumberVector handled by this Resultpublic class CorrelationAnalysisSolution<V extends NumberVector<V,?>>
A solution of correlation analysis is a matrix of equations describing the dependencies.
Field Summary | |
---|---|
private Vector |
centroid
The centroid if the objects belonging to the hyperplane induced by the correlation. |
private int |
correlationDimensionality
The dimensionality of the correlation. |
private LinearEquationSystem |
linearEquationSystem
Stores the solution equations. |
private NumberFormat |
nf
Number format for output accuracy. |
private Matrix |
similarityMatrix
The similarity matrix of the pca. |
private double |
standardDeviation
The standard deviation within this solution. |
private Matrix |
strongEigenvectors
The strong eigenvectors of the hyperplane induced by the correlation. |
private Matrix |
weakEigenvectors
The weak eigenvectors of the hyperplane induced by the correlation. |
Constructor Summary | |
---|---|
CorrelationAnalysisSolution(LinearEquationSystem solution,
Relation<V> db,
Matrix strongEigenvectors,
Matrix weakEigenvectors,
Matrix similarityMatrix,
Vector centroid)
Provides a new CorrelationAnalysisSolution holding the specified matrix. |
|
CorrelationAnalysisSolution(LinearEquationSystem solution,
Relation<V> db,
Matrix strongEigenvectors,
Matrix weakEigenvectors,
Matrix similarityMatrix,
Vector centroid,
NumberFormat nf)
Provides a new CorrelationAnalysisSolution holding the specified matrix and number format. |
Method Summary | |
---|---|
Matrix |
dataProjections(V p)
Returns the data vectors after projection. |
Vector |
dataVector(V p)
Returns the data vectors after projection. |
double |
distance(V p)
Returns the distance of NumberVector p from the hyperplane underlying this solution. |
private double |
distance(Vector p)
Returns the distance of Matrix p from the hyperplane underlying this solution. |
Vector |
errorVector(V p)
Returns the error vectors after projection. |
Vector |
getCentroid()
Returns the centroid of this model. |
int |
getCorrelationDimensionality()
Return the correlation dimensionality. |
String |
getLongName()
A "pretty" name for the result, for use in titles, captions and menus. |
LinearEquationSystem |
getNormalizedLinearEquationSystem(Normalization<?> normalization)
Returns the linear equation system for printing purposes. |
String |
getShortName()
A short name for the result, useful for file names. |
Matrix |
getSimilarityMatrix()
Returns the similarity matrix of the pca. |
double |
getStandardDeviation()
Returns the standard deviation of the distances of the objects belonging to the hyperplane underlying this solution. |
Matrix |
getStrongEigenvectors()
Returns a copy of the strong eigenvectors. |
Matrix |
getWeakEigenvectors()
Returns a copy of the weak eigenvectors. |
void |
writeToText(TextWriterStream out,
String label)
Text output of the equation system |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private LinearEquationSystem linearEquationSystem
private NumberFormat nf
private int correlationDimensionality
private final double standardDeviation
private final Matrix weakEigenvectors
private final Matrix strongEigenvectors
private final Matrix similarityMatrix
private final Vector centroid
Constructor Detail |
---|
public CorrelationAnalysisSolution(LinearEquationSystem solution, Relation<V> db, Matrix strongEigenvectors, Matrix weakEigenvectors, Matrix similarityMatrix, Vector centroid)
solution
- the linear equation system describing the solution
equationsdb
- the database containing the objectsstrongEigenvectors
- the strong eigenvectors of the hyperplane induced
by the correlationweakEigenvectors
- the weak eigenvectors of the hyperplane induced by
the correlationsimilarityMatrix
- the similarity matrix of the underlying distance
computationscentroid
- the centroid if the objects belonging to the hyperplane
induced by the correlationpublic CorrelationAnalysisSolution(LinearEquationSystem solution, Relation<V> db, Matrix strongEigenvectors, Matrix weakEigenvectors, Matrix similarityMatrix, Vector centroid, NumberFormat nf)
solution
- the linear equation system describing the solution
equationsdb
- the database containing the objectsstrongEigenvectors
- the strong eigenvectors of the hyperplane induced
by the correlationweakEigenvectors
- the weak eigenvectors of the hyperplane induced by
the correlationsimilarityMatrix
- the similarity matrix of the underlying distance
computationscentroid
- the centroid if the objects belonging to the hyperplane
induced by the correlationnf
- the number format for output accuracyMethod Detail |
---|
public LinearEquationSystem getNormalizedLinearEquationSystem(Normalization<?> normalization) throws NonNumericFeaturesException
normalization
- the normalization, can be null
NonNumericFeaturesException
- if the linear equation system is not
compatible with values initialized during normalizationpublic int getCorrelationDimensionality()
public double distance(V p)
p
- a vector in the space underlying this solution
private double distance(Vector p)
p
- a vector in the space underlying this solution
public Vector errorVector(V p)
p
- a vector in the space underlying this solution
public Matrix dataProjections(V p)
p
- a vector in the space underlying this solution
public Vector dataVector(V p)
p
- a vector in the space underlying this solution
public double getStandardDeviation()
public Matrix getStrongEigenvectors()
public Matrix getWeakEigenvectors()
public Matrix getSimilarityMatrix()
public Vector getCentroid()
public void writeToText(TextWriterStream out, String label)
writeToText
in interface TextWriteable
out
- Output writerlabel
- Labelpublic String getLongName()
Result
getLongName
in interface Result
public String getShortName()
Result
getShortName
in interface Result
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |