📄 leastsquaressolver.java
字号:
package org.jutil.math.matrix;/** * <p>A class of objects that solve least square problems represented * as a matrix.</p> * * @path $Source: /cvsroot/org-jutil/jutil.org/src/org/jutil/math/matrix/LeastSquaresSolver.java,v $ * @version $Revision: 1.3 $ * @date $Date: 2002/05/20 15:01:37 $ * @state $State: Exp $ * @author Marko van Dooren * @release $Name: $ */public interface LeastSquaresSolver { /* The revision of this class */ public final static String CVS_REVISION ="$Revision: 1.3 $"; /** * <p>Solve the system of linear equations as defined by * min(||b - A * x ||). The norm used is the 2-norm.</p> * * @param A * The matrix containing the coefficients of the equation. * Each row represents an equation. The i-th element of a row * represents the coefficient of the i-th variable in the equation * represented by that row. * @param b * The column representing the right-hand sides of the equation. * The right-handig side of the i-th row is the i-th element of the * Column */ /*@ @ public behavior @ @ pre A != null; @ pre b != null; @ pre b.size() == A.getNbRows(); @ @ post (* (\forall Column col; col.size() == b.size(); @ b.minus(A.times(\result)).norm(2) <= @ b.minus(A.times(col)).norm(2)) *); @*/ //MvDMvDMvD : are there more preconditions ? public Column solve(Matrix A, Column b);}/*<copyright>Copyright (C) 1997-2002. This software is copyrighted by the people and entities mentioned after the "@author" tags above, on behalf of the JUTIL.ORG Project. The copyright is dated by the dates after the "@date" tags above. All rights reserved.This software is published under the terms of the JUTIL.ORG SoftwareLicense version 1.1 or later, a copy of which has been included withthis distribution in the LICENSE file, which can also be found athttp://org-jutil.sourceforge.net/LICENSE. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the JUTIL.ORG Software License for more details.For more information, please see http://org-jutil.sourceforge.net/</copyright>*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -