update : 2015.11.03
php.shukuma.com검색:
|
Lapack::leastSquaresByFactorisation(PECL lapack >= 0.1.0) Lapack::leastSquaresByFactorisation — Calculate the linear least squares solution of a matrix using QR factorisation 설명
public static array Lapack::leastSquaresByFactorisation
( array
$a
, array $b
)Solve the linear least squares problem, find min x in || B - Ax || Returns an array representing x. Expects arrays of arrays, and will return an array of arrays in the dimension B num cols x A num cols. Uses QR or LQ factorisation on matrix A. 인수
반환값Array of the solution matrix 예제
Example #1 Using Lapack::leastSquaresByFactorisation():
<?php |