ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
PHPExcel_Linear_Best_Fit Class Reference
+ Inheritance diagram for PHPExcel_Linear_Best_Fit:
+ Collaboration diagram for PHPExcel_Linear_Best_Fit:

Public Member Functions

 getValueOfYForX ($xValue)
 getValueOfXForY ($yValue)
 getEquation ($dp=0)
 __construct ($yValues, $xValues=array(), $const =True)
- Public Member Functions inherited from PHPExcel_Best_Fit
 getError ()
 getBestFitType ()
 getXValues ()
 getSlope ($dp=0)
 getSlopeSE ($dp=0)
 getIntersect ($dp=0)
 getIntersectSE ($dp=0)
 getGoodnessOfFit ($dp=0)
 getGoodnessOfFitPercent ($dp=0)
 getStdevOfResiduals ($dp=0)
 getSSRegression ($dp=0)
 getSSResiduals ($dp=0)
 getDFResiduals ($dp=0)
 getF ($dp=0)
 getCovariance ($dp=0)
 getCorrelation ($dp=0)
 getYBestFitValues ()

Protected Attributes

 $_bestFitType = 'linear'
- Protected Attributes inherited from PHPExcel_Best_Fit
 $_error = False
 $_bestFitType = 'undetermined'
 $_valueCount = 0
 $_xValues = array()
 $_yValues = array()
 $_adjustToZero = False
 $_yBestFitValues = array()
 $_goodnessOfFit = 1
 $_stdevOfResiduals = 0
 $_covariance = 0
 $_correlation = 0
 $_SSRegression = 0
 $_SSResiduals = 0
 $_DFResiduals = 0
 $_F = 0
 $_slope = 0
 $_slopeSE = 0
 $_intersect = 0
 $_intersectSE = 0
 $_Xoffset = 0
 $_Yoffset = 0

Private Member Functions

 _linear_regression ($yValues, $xValues, $const)

Additional Inherited Members

- Protected Member Functions inherited from PHPExcel_Best_Fit
 _calculateGoodnessOfFit ($sumX, $sumY, $sumX2, $sumY2, $sumXY, $meanX, $meanY, $const)
 _leastSquareFit ($yValues, $xValues, $const)

Detailed Description

Definition at line 47 of file linearBestFitClass.php.

Constructor & Destructor Documentation

PHPExcel_Linear_Best_Fit::__construct (   $yValues,
  $xValues = array(),
  $const = True 
)

Reimplemented from PHPExcel_Best_Fit.

Definition at line 75 of file linearBestFitClass.php.

References _linear_regression().

{
if (parent::__construct($yValues, $xValues) !== False) {
$this->_linear_regression($yValues, $xValues, $const);
}
} // function __construct()

+ Here is the call graph for this function:

Member Function Documentation

PHPExcel_Linear_Best_Fit::_linear_regression (   $yValues,
  $xValues,
  $const 
)
private

Definition at line 70 of file linearBestFitClass.php.

References PHPExcel_Best_Fit\_leastSquareFit().

Referenced by __construct().

{
$this->_leastSquareFit($yValues, $xValues,$const);
} // function _linear_regression()

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

PHPExcel_Linear_Best_Fit::getEquation (   $dp = 0)

Reimplemented from PHPExcel_Best_Fit.

Definition at line 62 of file linearBestFitClass.php.

References PHPExcel_Best_Fit\getIntersect(), and PHPExcel_Best_Fit\getSlope().

{
$slope = $this->getSlope($dp);
$intersect = $this->getIntersect($dp);
return 'Y = '.$intersect.' + '.$slope.' * X';
} // function getEquation()

+ Here is the call graph for this function:

PHPExcel_Linear_Best_Fit::getValueOfXForY (   $yValue)

Reimplemented from PHPExcel_Best_Fit.

Definition at line 57 of file linearBestFitClass.php.

References PHPExcel_Best_Fit\getIntersect(), and PHPExcel_Best_Fit\getSlope().

{
return ($yValue - $this->getIntersect()) / $this->getSlope();
} // function getValueOfXForY()

+ Here is the call graph for this function:

PHPExcel_Linear_Best_Fit::getValueOfYForX (   $xValue)

Reimplemented from PHPExcel_Best_Fit.

Definition at line 52 of file linearBestFitClass.php.

References PHPExcel_Best_Fit\getIntersect(), and PHPExcel_Best_Fit\getSlope().

{
return $this->getIntersect() + $this->getSlope() * $xValue;
} // function getValueOfYForX()

+ Here is the call graph for this function:

Field Documentation

PHPExcel_Linear_Best_Fit::$_bestFitType = 'linear'
protected

Definition at line 49 of file linearBestFitClass.php.


The documentation for this class was generated from the following file: