\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

Summary

Methods
Properties
Constants
calculate()
No public properties found
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
No protected methods found
No protected properties found
N/A
No private methods found
$trendTypes
$trendTypePolynomialOrders
$trendCache
N/A

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 : array<mixed,string>

Names of the best-fit trend analysis methods

Type

array<mixed,string>

$trendTypePolynomialOrders

$trendTypePolynomialOrders : 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