Package org.la4j.linear
Class LeastSquaresSolver
java.lang.Object
org.la4j.linear.AbstractSolver
org.la4j.linear.LeastSquaresSolver
- All Implemented Interfaces:
Serializable
,LinearSystemSolver
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Matrix
private final Matrix
private static final long
Fields inherited from class org.la4j.linear.AbstractSolver
a, equations, unknowns
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
applicableTo
(Matrix matrix) Checks whether this solver applicable to givenmatrix
or not.Solves the system A*x = b.Methods inherited from class org.la4j.linear.AbstractSolver
ensureRHSIsCorrect, equations, fail, self, unknowns
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.la4j.linear.LinearSystemSolver
equations, self, unknowns
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
qr
-
r
-
-
Constructor Details
-
LeastSquaresSolver
-
-
Method Details
-
solve
Description copied from interface:LinearSystemSolver
Solves the system A*x = b.- Specified by:
solve
in interfaceLinearSystemSolver
- Parameters:
b
-- Returns:
-
applicableTo
Description copied from interface:LinearSystemSolver
Checks whether this solver applicable to givenmatrix
or not.- Specified by:
applicableTo
in interfaceLinearSystemSolver
- Parameters:
matrix
-
-