Constants

TREND_LINEAR

TREND_LINEAR

TREND_LOGARITHMIC

TREND_LOGARITHMIC

TREND_EXPONENTIAL

TREND_EXPONENTIAL

TREND_POWER

TREND_POWER

TREND_POLYNOMIAL_2

TREND_POLYNOMIAL_2

TREND_POLYNOMIAL_3

TREND_POLYNOMIAL_3

TREND_POLYNOMIAL_4

TREND_POLYNOMIAL_4

TREND_POLYNOMIAL_5

TREND_POLYNOMIAL_5

TREND_POLYNOMIAL_6

TREND_POLYNOMIAL_6

TREND_BEST_FIT

TREND_BEST_FIT

TREND_BEST_FIT_NO_POLY

TREND_BEST_FIT_NO_POLY

Properties

$_trendTypes

$_trendTypes : array<mixed,string>

Names of the best-fit trend analysis methods

Type

array<mixed,string>

$_trendTypePolyOrders

$_trendTypePolyOrders : array<mixed,string>

Names of the best-fit trend polynomial orders

Type

array<mixed,string>

$_trendCache

$_trendCache : array<mixed,\PHPExcel_Best_Fit>

Cached results for each method when trying to identify which provides the best fit

Type

array<mixed,\PHPExcel_Best_Fit>

Methods

calculate()

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

Parameters

$trendType
$yValues
$xValues
$const