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 AbstractDecompositor
matrix -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanapplicableTo(Matrix matrix) Checks whether this decompositor is applicable to given matrix or not.Matrix[]Returns the result of Singular Value decomposition of given matrixprivate doublehypot(double a, double b) Methods inherited from class AbstractDecompositor
fail, selfMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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:
decomposein interfaceMatrixDecompositor- Returns:
- { U, D, V }
-
hypot
private double hypot(double a, double b) -
applicableTo
Description copied from interface:MatrixDecompositorChecks whether this decompositor is applicable to given matrix or not.- Specified by:
applicableToin interfaceMatrixDecompositor- Parameters:
matrix-- Returns:
-