class Trend (View source)

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 = [], $const = true)

No description

Details

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

Parameters

$trendType
$yValues
$xValues
$const