Docs For Class PHPExcel_Linear_Best_Fit

PHPExcel_Shared_Best_Fit

# Class: PHPExcel_Linear_Best_Fit

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

### Class Overview

    PHPExcel_Best_Fit
       |
       --PHPExcel_Linear_Best_Fit

PHPExcel_Linear_Best_Fit

#### Author(s):

#### Copyright:

- Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel)

### Variables

- $_bestFitType

### Methods

- __construct
- getEquation
- getValueOfXForY
- getValueOfYForX

### Inherited Variables

#### Class: PHPExcel_Best_Fit

PHPExcel_Best_Fit::$_adjustToZero
PHPExcel_Best_Fit::$_correlation
PHPExcel_Best_Fit::$_covariance
PHPExcel_Best_Fit::$_DFResiduals
PHPExcel_Best_Fit::$_error
PHPExcel_Best_Fit::$_F
PHPExcel_Best_Fit::$_goodnessOfFit
PHPExcel_Best_Fit::$_intersect
PHPExcel_Best_Fit::$_intersectSE
PHPExcel_Best_Fit::$_slope
PHPExcel_Best_Fit::$_slopeSE
PHPExcel_Best_Fit::$_SSRegression
PHPExcel_Best_Fit::$_SSResiduals
PHPExcel_Best_Fit::$_stdevOfResiduals
PHPExcel_Best_Fit::$_valueCount
PHPExcel_Best_Fit::$_Xoffset
PHPExcel_Best_Fit::$_xValues
PHPExcel_Best_Fit::$_yBestFitValues
PHPExcel_Best_Fit::$_Yoffset
PHPExcel_Best_Fit::$_yValues

### Inherited Methods

#### Class: PHPExcel_Best_Fit

PHPExcel_Best_Fit::__construct()
PHPExcel_Best_Fit::getBestFitType()
PHPExcel_Best_Fit::getCorrelation()
PHPExcel_Best_Fit::getCovariance()
PHPExcel_Best_Fit::getDFResiduals()
PHPExcel_Best_Fit::getEquation()
PHPExcel_Best_Fit::getError()
PHPExcel_Best_Fit::getF()
PHPExcel_Best_Fit::getGoodnessOfFit()
PHPExcel_Best_Fit::getGoodnessOfFitPercent()
PHPExcel_Best_Fit::getIntersect()
PHPExcel_Best_Fit::getIntersectSE()
PHPExcel_Best_Fit::getSlope()
PHPExcel_Best_Fit::getSlopeSE()
PHPExcel_Best_Fit::getSSRegression()
PHPExcel_Best_Fit::getSSResiduals()
PHPExcel_Best_Fit::getStdevOfResiduals()
PHPExcel_Best_Fit::getValueOfXForY()
PHPExcel_Best_Fit::getValueOfYForX()
PHPExcel_Best_Fit::getXValues()
PHPExcel_Best_Fit::getYBestFitValues()
PHPExcel_Best_Fit::_calculateGoodnessOfFit()
PHPExcel_Best_Fit::_leastSquareFit()

### Class Details

[line 39]
PHPExcel_Linear_Best_Fit

#### Tags:

copyright: | Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel)

[ Top ]

### Class Variables

#### $_bestFitType = 'linear'

[line 41]

#### Tags:

access: | protected

Type: | mixed
Overrides: | Array

[ Top ]

### Class Methods

### constructor __construct [line 67]

`PHPExcel_Linear_Best_Fit __construct( $yValues, [ $xValues = array()], [ $const = True])`

Overrides PHPExcel_Best_Fit::__construct() (parent method not documented)

#### Parameters:

| $yValues |
| $xValues |
| $const |

[ Top ]

### method getEquation [line 54]

`void getEquation( [ $dp = 0])`

#### Tags:

access: | public

Overrides PHPExcel_Best_Fit::getEquation() (parent method not documented)

#### Parameters:

| $dp |

[ Top ]

### method getValueOfXForY [line 49]

`void getValueOfXForY( $yValue)`

#### Tags:

access: | public

Overrides PHPExcel_Best_Fit::getValueOfXForY() (parent method not documented)

#### Parameters:

| $yValue |

[ Top ]

### method getValueOfYForX [line 44]

`void getValueOfYForX( $xValue)`

#### Tags:

access: | public

Overrides PHPExcel_Best_Fit::getValueOfYForX() (parent method not documented)

#### Parameters:

| $xValue |

[ Top ]

Documentation generated on Sun, 27 Feb 2011 16:32:29 -0800 by phpDocumentor 1.4.3