class trendClass

PHPExcel_trendClass

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

Constants

TREND_LINEAR

TREND_LOGARITHMIC

TREND_EXPONENTIAL

TREND_POWER

TREND_POLYNOMIAL_2

TREND_POLYNOMIAL_3

TREND_POLYNOMIAL_4

TREND_POLYNOMIAL_5

TREND_POLYNOMIAL_6

TREND_BEST_FIT

TREND_BEST_FIT_NO_POLY

Methods

static 
calculate($trendType = self::TREND_BEST_FIT, $yValues, $xValues = array(), $const = true)

No description

Details

at line 90
static calculate($trendType = self::TREND_BEST_FIT, $yValues, $xValues = array(), $const = true)

Parameters

$trendType
$yValues
$xValues
$const