芝麻web文件管理V1.00
编辑当前文件:/home/krishnamexports/public_html/panel/excel/Classes/PHPExcel/Shared/trend/trendClass.php
getGoodnessOfFit(); } if ($trendType != self::TREND_BEST_FIT_NO_POLY) { foreach(self::$_trendTypePolyOrders as $trendMethod) { $order = substr($trendMethod,-1); $bestFit[$trendMethod] = new PHPExcel_Polynomial_Best_Fit($order,$yValues,$xValues,$const); if ($bestFit[$trendMethod]->getError()) { unset($bestFit[$trendMethod]); } else { $bestFitValue[$trendMethod] = $bestFit[$trendMethod]->getGoodnessOfFit(); } } } // Determine which of our trend lines is the best fit, and then we return the instance of that trend class arsort($bestFitValue); $bestFitType = key($bestFitValue); return $bestFit[$bestFitType]; break; default : return false; } } // function calculate() } // class trendClass