BDVal API 20110316173314

edu.cornell.med.icb.svd
Interface SingularValueDecomposition

All Known Implementing Classes:
SingularValueDecompositionWithColt, SingularValueDecompositionWithLAPACK, SingularValueDecompositionWithMTJ, SingularValueDecompositionWithR, SingularValueDecompositionWithTCT

public interface SingularValueDecomposition

An interface to calculate the Singular value decomposition of a matrix.

Author:
Fabien Campagne Date: Dec 13, 2007 Time: 12:15:29 PM

Method Summary
 double[] getSingularValues()
          Returns the singular values.
 double[][] getU()
           
 double[][] getV()
           
 int rank()
          Returns the number of singular values computed.
 void svd(double[][] matrix)
          Computes the Singular Value Decomposition of matrix m.
 void svd(double[][] matrix, int k)
          Computes the Singular Value Decomposition of matrix m.
 void svd(double[][] matrix, int numU, int numV)
          Computes the Singular Value Decomposition of matrix m.
 

Method Detail

svd

void svd(double[][] matrix)
Computes the Singular Value Decomposition of matrix m.

Parameters:
matrix - The matrix m where the form of the matrix is expected to be double[m][n]. m is the number of columns of input matrix and n is the number of rows of input matrix

svd

void svd(double[][] matrix,
         int k)
Computes the Singular Value Decomposition of matrix m.

Parameters:
matrix - m
k - Number of singular values to compute.

svd

void svd(double[][] matrix,
         int numU,
         int numV)
Computes the Singular Value Decomposition of matrix m.

Parameters:
matrix - m
numU - Number of U vectors that must be estimated.
numV - Number of V elements that must be estimated.

rank

int rank()
Returns the number of singular values computed.

Returns:
number of singular values (i.e. the rank of the decomposition).

getSingularValues

double[] getSingularValues()
Returns the singular values.

Returns:
array of singular values.

getU

double[][] getU()

getV

double[][] getV()

BDVal API 20110316173314

Copyright © 2007-2011 Institute for Computational Biomedicine, All Rights Reserved.