⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qrleastsquaressolver.java

📁 一个关于java 的常用工具包
💻 JAVA
字号:
package org.jutil.math.matrix;/** * <p>A class of objects that solve least squares problems using its QR decomposition.</p> * * @path    $Source: /cvsroot/org-jutil/jutil.org/src/org/jutil/math/matrix/QRLeastSquaresSolver.java,v $ * @version $Revision: 1.4 $ * @date    $Date: 2002/07/02 14:27:31 $ * @state   $State: Exp $ * @author  Marko van Dooren * @release $Name:  $ */public class QRLeastSquaresSolver extends AbstractSolver implements LeastSquaresSolver {	/* The revision of this class */	public final static String CVS_REVISION ="$Revision: 1.4 $";	/**	 * Initialize a new QRLeastSquaresSolver with the given QRDecomposer.	 *	 * @param decomposer	 *        The QRDecomposer to be used by this QRLeastSquaresSolver.	 */	 /*@   @ public behavior	 @	 @ pre decomposer != null;	 @	 @ post getDecomposer() == decomposer;	 @*/	public QRLeastSquaresSolver(QRDecomposer decomposer) {		_decomposer = decomposer;	}		/**	 * Return the QRDecomposer of this QRLeastSquaresSolver.	 */	public QRDecomposer getDecomposer() {		return _decomposer;	}		/**	 * see superclass	 */	public Column solve(Matrix A, Column b) { 		QRDecomposition qr = getDecomposer().decompose(A); 		Column y = qr.QreducedTransposeTimes(b); 		return backSubstitute(qr.Rreduced(), y);  }		/**	 * The QRDecomposer used by this QRLeastSquaresSolver.	 */ /*@   @ private invariant _decomposer != null;	 @*/	private QRDecomposer _decomposer;}/*<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://www.jutil.org/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://jutil.org/</copyright>*/	

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -