V - the type of NumberVector handled by this Resultpublic class CorrelationAnalysisSolution<V extends NumberVector> extends java.lang.Object implements TextWriteable, Result, Model
| Modifier and Type | Field and Description |
|---|---|
private double[] |
centroid
The centroid if the objects belonging to the hyperplane induced by the
correlation.
|
private int |
correlationDimensionality
The dimensionality of the correlation.
|
private static double[] |
EMPTY_VECTOR
Empty constant vector returned when no subspace was used.
|
private LinearEquationSystem |
linearEquationSystem
Stores the solution equations.
|
private java.text.NumberFormat |
nf
Number format for output accuracy.
|
private double[][] |
similarityMatrix
The similarity matrix of the pca.
|
private double |
standardDeviation
The standard deviation within this solution.
|
private double[][] |
strongEigenvectors
The strong eigenvectors of the hyperplane induced by the correlation.
|
private double[][] |
weakEigenvectors
The weak eigenvectors of the hyperplane induced by the correlation.
|
| Constructor and Description |
|---|
CorrelationAnalysisSolution(LinearEquationSystem solution,
Relation<V> db,
double[][] strongEigenvectors,
double[][] weakEigenvectors,
double[][] similarityMatrix,
double[] centroid)
Provides a new CorrelationAnalysisSolution holding the specified matrix.
|
CorrelationAnalysisSolution(LinearEquationSystem solution,
Relation<V> db,
double[][] strongEigenvectors,
double[][] weakEigenvectors,
double[][] similarityMatrix,
double[] centroid,
java.text.NumberFormat nf)
Provides a new CorrelationAnalysisSolution holding the specified matrix and
number format.
|
| Modifier and Type | Method and Description |
|---|---|
double[] |
dataVector(V p)
Returns the data vectors after projection.
|
double[] |
errorVector(V p)
Returns the error vectors after projection.
|
double[] |
getCentroid()
Returns the centroid of this model.
|
int |
getCorrelationDimensionality()
Return the correlation dimensionality.
|
java.lang.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.
|
java.lang.String |
getShortName()
A short name for the result, useful for file names.
|
double[][] |
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.
|
double[][] |
getStrongEigenvectors()
Returns the strong eigenvectors.
|
double[][] |
getWeakEigenvectors()
Returns the weak eigenvectors.
|
double |
squaredDistance(V p)
Returns the distance of NumberVector p from the hyperplane underlying this
solution.
|
void |
writeToText(TextWriterStream out,
java.lang.String label)
Text output of the equation system
|
private static final double[] EMPTY_VECTOR
private LinearEquationSystem linearEquationSystem
private java.text.NumberFormat nf
private int correlationDimensionality
private final double standardDeviation
private final double[][] weakEigenvectors
private final double[][] strongEigenvectors
private final double[][] similarityMatrix
private final double[] centroid
public CorrelationAnalysisSolution(LinearEquationSystem solution, Relation<V> db, double[][] strongEigenvectors, double[][] weakEigenvectors, double[][] similarityMatrix, double[] 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, double[][] strongEigenvectors, double[][] weakEigenvectors, double[][] similarityMatrix, double[] centroid, java.text.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 squaredDistance(V p)
p - a vector in the space underlying this solutionpublic double[] errorVector(V p)
p - a vector in the space underlying this solutionpublic double[] dataVector(V p)
p - a vector in the space underlying this solutionpublic double getStandardDeviation()
public double[][] getStrongEigenvectors()
public double[][] getWeakEigenvectors()
public double[][] getSimilarityMatrix()
public double[] getCentroid()
public void writeToText(TextWriterStream out, java.lang.String label)
writeToText in interface ModelwriteToText in interface TextWriteableout - Output writerlabel - Labelpublic java.lang.String getLongName()
ResultgetLongName in interface Resultpublic java.lang.String getShortName()
ResultgetShortName in interface ResultCopyright © 2019 ELKI Development Team. License information.