PHPExcel_Best_Fit

category PHPExcel
package PHPExcel_Shared_Trend
copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)

 Methods

Define the regression

__construct(float[] $yValues, float[] $xValues, boolean $const) 

Parameters

$yValues

float[]

The set of Y-values for this regression

$xValues

float[]

The set of X-values for this regression

$const

boolean

getBestFitType()

getBestFitType() 

getCorrelation()

getCorrelation($dp) 

Parameters

$dp

getCovariance()

getCovariance($dp) 

Parameters

$dp

getDFResiduals()

getDFResiduals($dp) 

Parameters

$dp

Return the Equation of the best-fit line

getEquation(int $dp) : string

Parameters

$dp

int

Number of places of decimal precision to display

Returns

string

getError()

getError() 

getF()

getF($dp) 

Parameters

$dp

Return the goodness of fit for this regression

getGoodnessOfFit(int $dp) : float

Parameters

$dp

int

Number of places of decimal precision to return

Returns

float

getGoodnessOfFitPercent()

getGoodnessOfFitPercent($dp) 

Parameters

$dp

Return the Value of X where it intersects Y = 0

getIntersect(int $dp) : string

Parameters