Package org.la4j.decomposition
Class SingularValueDecompositor
java.lang.Object
org.la4j.decomposition.AbstractDecompositor
org.la4j.decomposition.SingularValueDecompositor
- All Implemented Interfaces:
Serializable
,MatrixDecompositor
This class represents singular value decomposition of matrices. More details
- See Also:
-
Field Summary
Fields inherited from class org.la4j.decomposition.AbstractDecompositor
matrix
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
applicableTo
(Matrix matrix) Checks whether this decompositor is applicable to given matrix or not.Matrix[]
Returns the result of Singular Value decomposition of given matrixprivate double
hypot
(double a, double b) Methods inherited from class org.la4j.decomposition.AbstractDecompositor
fail, self
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.la4j.decomposition.MatrixDecompositor
self
-
Constructor Details
-
SingularValueDecompositor
-
-
Method Details
-
decompose
Returns the result of Singular Value decomposition of given matrixSee http://mathworld.wolfram.com/SingularValueDecomposition.html for more details.
- Specified by:
decompose
in interfaceMatrixDecompositor
- Returns:
- { U, D, V }
-
hypot
private double hypot(double a, double b) -
applicableTo
Description copied from interface:MatrixDecompositor
Checks whether this decompositor is applicable to given matrix or not.- Specified by:
applicableTo
in interfaceMatrixDecompositor
- Parameters:
matrix
-- Returns:
-