Docs For Class trendClass

PHPExcel

# Class: trendClass

Source Location: /PHPExcel/Shared/trend/trendClass.php

### Class Overview

### 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 10]
[ Top ]

### Class Methods

### static method calculate [line 39]

`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 21]

[ Top ]

#### TREND_BEST_FIT_NO_POLY = 'Bestfit_no_Polynomials'

[line 22]

[ Top ]

#### TREND_EXPONENTIAL = 'Exponential'

[line 14]

[ Top ]

#### TREND_LINEAR = 'Linear'

[line 12]

[ Top ]

#### TREND_LOGARITHMIC = 'Logarithmic'

[line 13]

[ Top ]

#### TREND_POLYNOMIAL_2 = 'Polynomial_2'

[line 16]

[ Top ]

#### TREND_POLYNOMIAL_3 = 'Polynomial_3'

[line 17]

[ Top ]

#### TREND_POLYNOMIAL_4 = 'Polynomial_4'

[line 18]

[ Top ]

#### TREND_POLYNOMIAL_5 = 'Polynomial_5'

[line 19]

[ Top ]

#### TREND_POLYNOMIAL_6 = 'Polynomial_6'

[line 20]

[ Top ]

#### TREND_POWER = 'Power'

[line 15]

[ Top ]

Documentation generated on Sun, 27 Feb 2011 16:35:44 -0800 by phpDocumentor 1.4.3