$error
$error : boolean
Indicator flag for a calculation error
PHPExcel_Linear_Best_Fit
Copyright (c) 2006 - 2015 PHPExcel
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
__construct(array<mixed,float> $yValues, array<mixed,float> $xValues = array(), boolean $const = true)
Define the regression and calculate the goodness of fit for a set of X and Y data values
array<mixed,float> | $yValues | The set of Y-values for this regression |
array<mixed,float> | $xValues | The set of X-values for this regression |
boolean | $const |
linearRegression(array<mixed,float> $yValues, array<mixed,float> $xValues, boolean $const)
Execute the regression and calculate the goodness of fit for a set of X and Y data values
array<mixed,float> | $yValues | The set of Y-values for this regression |
array<mixed,float> | $xValues | The set of X-values for this regression |
boolean | $const |