class PHPExcel_Linear_Best_Fit extends PHPExcel_Best_Fit

PHPExcelLinearBest_Fit

Copyright (c) 2006 - 2015 PHPExcel

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Methods

getError()

No description

getBestFitType()

No description

float
getValueOfYForX(float $xValue)

Return the Y-Value for a specified value of X

float
getValueOfXForY(float $yValue)

Return the X-Value for a specified value of Y

float[]
getXValues()

Return the original set of X-Values

string
getEquation(int $dp)

Return the Equation of the best-fit line

string
getSlope(int $dp)

Return the Slope of the line

string
getSlopeSE(int $dp)

Return the standard error of the Slope

string
getIntersect(int $dp)

Return the Value of X where it intersects Y = 0

string
getIntersectSE(int $dp)

Return the standard error of the Intersect

float
getGoodnessOfFit(int $dp)

Return the goodness of fit for this regression

getGoodnessOfFitPercent($dp)

No description

float
getStdevOfResiduals(int $dp)

Return the standard deviation of the residuals for this regression

getSSRegression($dp)

No description

getSSResiduals($dp)

No description

getDFResiduals($dp)

No description

getF($dp)

No description

getCovariance($dp)

No description

getCorrelation($dp)

No description

getYBestFitValues()

No description

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

Define the regression and calculate the goodness of fit for a set of X and Y data values

Details

in PHPExcel_Best_Fit at line 117
getError()

in PHPExcel_Best_Fit at line 123
getBestFitType()

at line 55
float getValueOfYForX(float $xValue)

Return the Y-Value for a specified value of X

Parameters

float $xValue X-Value

Return Value

float Y-Value

at line 66
float getValueOfXForY(float $yValue)

Return the X-Value for a specified value of Y

Parameters

float $yValue Y-Value

Return Value

float X-Value

in PHPExcel_Best_Fit at line 155
float[] getXValues()

Return the original set of X-Values

Return Value

float[] X-Values

at line 78
string getEquation(int $dp)

Return the Equation of the best-fit line

Parameters

int $dp Number of places of decimal precision to display

Return Value

string

in PHPExcel_Best_Fit at line 177
string getSlope(int $dp)

Return the Slope of the line

Parameters

int $dp Number of places of decimal precision to display

Return Value

string

in PHPExcel_Best_Fit at line 191
string getSlopeSE(int $dp)

Return the standard error of the Slope

Parameters

int $dp Number of places of decimal precision to display

Return Value

string

in PHPExcel_Best_Fit at line 205
string getIntersect(int $dp)

Return the Value of X where it intersects Y = 0

Parameters

int $dp Number of places of decimal precision to display

Return Value

string

in PHPExcel_Best_Fit at line 219
string getIntersectSE(int $dp)

Return the standard error of the Intersect

Parameters

int $dp Number of places of decimal precision to display

Return Value

string

in PHPExcel_Best_Fit at line 233
float getGoodnessOfFit(int $dp)

Return the goodness of fit for this regression

Parameters

int $dp Number of places of decimal precision to return

Return Value

float

in PHPExcel_Best_Fit at line 241
getGoodnessOfFitPercent($dp)

Parameters

$dp

in PHPExcel_Best_Fit at line 255
float getStdevOfResiduals(int $dp)

Return the standard deviation of the residuals for this regression

Parameters

int $dp Number of places of decimal precision to return

Return Value

float

in PHPExcel_Best_Fit at line 263
getSSRegression($dp)

Parameters

$dp

in PHPExcel_Best_Fit at line 271
getSSResiduals($dp)

Parameters

$dp

in PHPExcel_Best_Fit at line 279
getDFResiduals($dp)

Parameters

$dp

in PHPExcel_Best_Fit at line 287
getF($dp)

Parameters

$dp

in PHPExcel_Best_Fit at line 295
getCovariance($dp)

Parameters

$dp

in PHPExcel_Best_Fit at line 303
getCorrelation($dp)

Parameters

$dp

in PHPExcel_Best_Fit at line 311
getYBestFitValues()

at line 105
__construct(float[] $yValues, float[] $xValues = array(), boolean $const = true)

Define the regression and calculate the goodness of fit for a set of X and Y data values

Parameters

float[] $yValues The set of Y-values for this regression
float[] $xValues The set of X-values for this regression
boolean $const