|
|
|||||||||||||||||||||
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.algorithm.result.AbstractResult<V> de.lmu.ifi.dbs.elki.algorithm.result.CorrelationAnalysisSolution<V>
V
- the type of RealVector handled by this Resultpublic class CorrelationAnalysisSolution<V extends RealVector<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. |
Fields inherited from class de.lmu.ifi.dbs.elki.algorithm.result.AbstractResult |
---|
db, FILE_EXTENSION |
Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
---|
debug |
Fields inherited from interface de.lmu.ifi.dbs.elki.algorithm.result.Result |
---|
SEPARATOR |
Constructor Summary | |
---|---|
CorrelationAnalysisSolution(LinearEquationSystem solution,
Database<V> db,
Matrix strongEigenvectors,
Matrix weakEigenvectors,
Matrix similarityMatrix,
Vector centroid)
Provides a new CorrelationAnalysisSolution holding the specified matrix. |
|
CorrelationAnalysisSolution(LinearEquationSystem solution,
Database<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 | |
---|---|
private double |
distance(Matrix p)
Returns the distance of Matrix p from the hyperplane underlying this solution. |
double |
distance(V p)
Returns the distance of RealVector p from the hyperplane underlying this solution. |
Vector |
getCentroid()
Returns the centroid of this model. |
int |
getCorrelationDimensionality()
Return the correlation dimensionality. |
LinearEquationSystem |
getNormalizedLinearEquationSystem(Normalization<V> normalization)
Returns the linear equation system for printing purposes. |
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 |
output(File out,
Normalization<V> normalization,
List<AttributeSettings> settings)
Writes the clustering result to the given file. |
void |
output(PrintStream outStream,
Normalization<V> normalization,
List<AttributeSettings> settings)
Writes the clustering result to the given stream. |
Methods inherited from class de.lmu.ifi.dbs.elki.algorithm.result.AbstractResult |
---|
getDatabase, writeHeader |
Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
---|
debugFine, debugFiner, debugFinest, exception, message, progress, progress, progress, verbose, verbose, warning |
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, Database<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, Database<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 void output(File out, Normalization<V> normalization, List<AttributeSettings> settings) throws UnableToComplyException
Result
output
in interface Result<V extends RealVector<V,?>>
output
in class AbstractResult<V extends RealVector<V,?>>
out
- file, which designates the location to write the results,
or which's name designates the prefix of any locations to write the results,
or which could remain null to designate the standard-out as location for output.normalization
- Normalization to restore original values according to, if this action is supported
- may remain null.settings
- the settings to be written into the header, if this parameter is null
,
no header will be written
UnableToComplyException
- if any feature vector is not compatible with values initialized during normalizationResult.output(File,Normalization,List)
public void output(PrintStream outStream, Normalization<V> normalization, List<AttributeSettings> settings) throws UnableToComplyException
outStream
- the stream to write tonormalization
- Normalization to restore original values according
to, if this action is supported - may remain null.settings
- the settings to be written into the header
UnableToComplyException
- if any feature
vector is not compatible with values initialized during
normalizationpublic LinearEquationSystem getNormalizedLinearEquationSystem(Normalization<V> 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(Matrix 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()
|
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |