parent
b509b672e0
commit
dcc1832215
|
@ -164,7 +164,7 @@ class PolynomialBestFit extends BestFit
|
||||||
$this->intersect = array_shift($coefficients);
|
$this->intersect = array_shift($coefficients);
|
||||||
$this->slope = $coefficients;
|
$this->slope = $coefficients;
|
||||||
|
|
||||||
$this->calculateGoodnessOfFit($x_sum, $y_sum, $xx_sum, $yy_sum, $xy_sum);
|
$this->calculateGoodnessOfFit($x_sum, $y_sum, $xx_sum, $yy_sum, $xy_sum, 0, 0, 0);
|
||||||
foreach ($this->xValues as $xKey => $xValue) {
|
foreach ($this->xValues as $xKey => $xValue) {
|
||||||
$this->yBestFitValues[$xKey] = $this->getValueOfYForX($xValue);
|
$this->yBestFitValues[$xKey] = $this->getValueOfYForX($xValue);
|
||||||
}
|
}
|
||||||
|
|
|
@ -827,7 +827,7 @@ class Worksheet extends BIFFwriter
|
||||||
$formula = substr($formula, 1);
|
$formula = substr($formula, 1);
|
||||||
} else {
|
} else {
|
||||||
// Error handling
|
// Error handling
|
||||||
$this->writeString($row, $col, 'Unrecognised character for formula');
|
$this->writeString($row, $col, 'Unrecognised character for formula', 0);
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue