$error
$error : boolean
Indicator flag for a calculation error.
__construct(integer $order, 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.
integer | $order | Order of Polynomial for this regression |
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 |
polynomialRegression(integer $order, array<mixed,float> $yValues, array<mixed,float> $xValues)
Execute the regression and calculate the goodness of fit for a set of X and Y data values.
integer | $order | Order of Polynomial for this regression |
array<mixed,float> | $yValues | The set of Y-values for this regression |
array<mixed,float> | $xValues | The set of X-values for this regression |