default

# Class: trendClass Source Location: /PHPExcel/Shared/trend/trendClass.php
### Class Overview
| ### Variables $_trendCache $_trendTypePolyOrders $_trendTypes | ### Constants TREND_BEST_FIT TREND_BEST_FIT_NO_POLY TREND_EXPONENTIAL TREND_LINEAR TREND_LOGARITHMIC TREND_POLYNOMIAL_2 TREND_POLYNOMIAL_3 TREND_POLYNOMIAL_4 TREND_POLYNOMIAL_5 TREND_POLYNOMIAL_6 TREND_POWER | ### Methods calculate
### Class Details [line 18] [ Top ] ### Class Variables #### static $_trendCache = array() [line 44] #### Tags:
access: | private
Type: | mixed
[ Top ] #### static $_trendTypePolyOrders = array( self::TREND_POLYNOMIAL_2, self::TREND_POLYNOMIAL_3, self::TREND_POLYNOMIAL_4, self::TREND_POLYNOMIAL_5, self::TREND_POLYNOMIAL_6 ) [line 37] #### Tags:
access: | private
Type: | mixed
[ Top ] #### static $_trendTypes = array( self::TREND_LINEAR, self::TREND_LOGARITHMIC, self::TREND_EXPONENTIAL, self::TREND_POWER ) [line 32] #### Tags:
access: | private
Type: | mixed
[ Top ] ### Class Methods ### static method calculate [line 47]
`static void calculate( [ $trendType = self::TREND_BEST_FIT], $yValues, [ $xValues = array()], [ $const = True])`
#### Tags:
access: | public
#### Parameters:
| $trendType |
| $yValues |
| $xValues |
| $const |
[ Top ] ### Class Constants #### TREND_BEST_FIT = 'Bestfit' [line 29] [ Top ] #### TREND_BEST_FIT_NO_POLY = 'Bestfit_no_Polynomials' [line 30] [ Top ] #### TREND_EXPONENTIAL = 'Exponential' [line 22] [ Top ] #### TREND_LINEAR = 'Linear' [line 20] [ Top ] #### TREND_LOGARITHMIC = 'Logarithmic' [line 21] [ Top ] #### TREND_POLYNOMIAL_2 = 'Polynomial_2' [line 24] [ Top ] #### TREND_POLYNOMIAL_3 = 'Polynomial_3' [line 25] [ Top ] #### TREND_POLYNOMIAL_4 = 'Polynomial_4' [line 26] [ Top ] #### TREND_POLYNOMIAL_5 = 'Polynomial_5' [line 27] [ Top ] #### TREND_POLYNOMIAL_6 = 'Polynomial_6' [line 28] [ Top ] #### TREND_POWER = 'Power' [line 23] [ Top ] Documentation generated on Mon, 11 Jan 2010 08:16:01 +0100 by phpDocumentor 1.4.1