org.apache.mahout.math.matrix.linalg
Class SingularValueDecomposition

java.lang.Object
  extended by org.apache.mahout.math.matrix.linalg.SingularValueDecomposition
All Implemented Interfaces:
java.io.Serializable

Deprecated. until unit tests are in place. Until this time, this class/interface is unsupported.

@Deprecated
public class SingularValueDecomposition
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
SingularValueDecomposition(DoubleMatrix2D Arg)
          Deprecated. Constructs and returns a new singular value decomposition object; The decomposed matrices can be retrieved via instance methods of the returned decomposition object.
 
Method Summary
 double cond()
          Deprecated. Returns the two norm condition number, which is max(S) / min(S).
 DoubleMatrix2D getS()
          Deprecated. Returns the diagonal matrix of singular values.
 double[] getSingularValues()
          Deprecated. Returns the diagonal of S, which is a one-dimensional array of singular values
 DoubleMatrix2D getU()
          Deprecated. Returns the left singular vectors U.
 DoubleMatrix2D getV()
          Deprecated. Returns the right singular vectors V.
 double norm2()
          Deprecated. Returns the two norm, which is max(S).
 int rank()
          Deprecated. Returns the effective numerical matrix rank, which is the number of nonnegligible singular values.
 java.lang.String toString()
          Deprecated. Returns a String with (propertyName, propertyValue) pairs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SingularValueDecomposition

public SingularValueDecomposition(DoubleMatrix2D Arg)
Deprecated. 
Constructs and returns a new singular value decomposition object; The decomposed matrices can be retrieved via instance methods of the returned decomposition object.

Parameters:
Arg - A rectangular matrix.
Throws:
java.lang.IllegalArgumentException - if A.rows() < A.columns().
Method Detail

cond

public double cond()
Deprecated. 
Returns the two norm condition number, which is max(S) / min(S).


getS

public DoubleMatrix2D getS()
Deprecated. 
Returns the diagonal matrix of singular values.

Returns:
S

getSingularValues

public double[] getSingularValues()
Deprecated. 
Returns the diagonal of S, which is a one-dimensional array of singular values

Returns:
diagonal of S.

getU

public DoubleMatrix2D getU()
Deprecated. 
Returns the left singular vectors U.

Returns:
U

getV

public DoubleMatrix2D getV()
Deprecated. 
Returns the right singular vectors V.

Returns:
V

norm2

public double norm2()
Deprecated. 
Returns the two norm, which is max(S).


rank

public int rank()
Deprecated. 
Returns the effective numerical matrix rank, which is the number of nonnegligible singular values.


toString

public java.lang.String toString()
Deprecated. 
Returns a String with (propertyName, propertyValue) pairs. Useful for debugging or to quickly get the rough picture. For example,
 rank          : 3
 trace         : 0
 

Overrides:
toString in class java.lang.Object


Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.