V
- the type of NumberVector handled by this Resultpublic class CorrelationAnalysisSolution<V extends NumberVector> extends Object implements TextWriteable, Result, Model
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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 the strong eigenvectors.
|
Matrix |
getWeakEigenvectors()
Returns the weak eigenvectors.
|
void |
writeToText(TextWriterStream out,
String label)
Text output of the equation system
|
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
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 accuracypublic LinearEquationSystem getNormalizedLinearEquationSystem(Normalization<?> normalization) throws NonNumericFeaturesException
normalization
- the normalization, can be nullNonNumericFeaturesException
- 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 solutionprivate double distance(Vector p)
p
- a vector in the space underlying this solutionpublic Vector errorVector(V p)
p
- a vector in the space underlying this solutionpublic Matrix dataProjections(V p)
p
- a vector in the space underlying this solutionpublic Vector dataVector(V p)
p
- a vector in the space underlying this solutionpublic 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
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.