Constants

TREND_LINEAR

TREND_LINEAR = 'Linear'

TREND_LOGARITHMIC

TREND_LOGARITHMIC = 'Logarithmic'

TREND_EXPONENTIAL

TREND_EXPONENTIAL = 'Exponential'

TREND_POWER

TREND_POWER = 'Power'

TREND_POLYNOMIAL_2

TREND_POLYNOMIAL_2 = 'Polynomial_2'

TREND_POLYNOMIAL_3

TREND_POLYNOMIAL_3 = 'Polynomial_3'

TREND_POLYNOMIAL_4

TREND_POLYNOMIAL_4 = 'Polynomial_4'

TREND_POLYNOMIAL_5

TREND_POLYNOMIAL_5 = 'Polynomial_5'

TREND_POLYNOMIAL_6

TREND_POLYNOMIAL_6 = 'Polynomial_6'

TREND_BEST_FIT

TREND_BEST_FIT = 'Bestfit'

TREND_BEST_FIT_NO_POLY

TREND_BEST_FIT_NO_POLY = 'Bestfit_no_Polynomials'

Properties

$_trendTypes

$_trendTypes : string[]

Names of the best-fit trend analysis methods

Type

string[]

$_trendTypePolyOrders

$_trendTypePolyOrders : string[]

Names of the best-fit trend polynomial orders

Type

string[]

$_trendCache

$_trendCache : \PHPExcel_Best_Fit[]

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

Type

PHPExcel_Best_Fit[]

Methods

calculate()

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

Parameters

mixed $trendType
mixed $yValues
mixed $xValues
mixed $const

Returns

mixed —