ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Public Member Functions | |
getOrder () | |
Return the order of this polynomial. More... | |
getValueOfYForX ($xValue) | |
Return the Y-Value for a specified value of X. More... | |
getValueOfXForY ($yValue) | |
Return the X-Value for a specified value of Y. More... | |
getEquation ($dp=0) | |
Return the Equation of the best-fit line. More... | |
getSlope ($dp=0) | |
Return the Slope of the line. More... | |
getCoefficients ($dp=0) | |
__construct ($order, $yValues, $xValues=array(), $const=True) | |
Define the regression and calculate the goodness of fit for a set of X and Y data values. More... | |
Public Member Functions inherited from PHPExcel_Best_Fit | |
getError () | |
getBestFitType () | |
getValueOfYForX ($xValue) | |
Return the Y-Value for a specified value of X. More... | |
getValueOfXForY ($yValue) | |
Return the X-Value for a specified value of Y. More... | |
getXValues () | |
Return the original set of X-Values. More... | |
getEquation ($dp=0) | |
Return the Equation of the best-fit line. More... | |
getSlope ($dp=0) | |
Return the Slope of the line. More... | |
getSlopeSE ($dp=0) | |
Return the standard error of the Slope. More... | |
getIntersect ($dp=0) | |
Return the Value of X where it intersects Y = 0. More... | |
getIntersectSE ($dp=0) | |
Return the standard error of the Intersect. More... | |
getGoodnessOfFit ($dp=0) | |
Return the goodness of fit for this regression. More... | |
getGoodnessOfFitPercent ($dp=0) | |
getStdevOfResiduals ($dp=0) | |
Return the standard deviation of the residuals for this regression. More... | |
getSSRegression ($dp=0) | |
getSSResiduals ($dp=0) | |
getDFResiduals ($dp=0) | |
getF ($dp=0) | |
getCovariance ($dp=0) | |
getCorrelation ($dp=0) | |
getYBestFitValues () | |
__construct ($yValues, $xValues=array(), $const=True) | |
Define the regression. More... | |
Protected Attributes | |
$_bestFitType = 'polynomial' | |
$_order = 0 | |
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 | |
_polynomial_regression ($order, $yValues, $xValues, $const) | |
Execute the regression and calculate the goodness of fit for a set of X and Y data values. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from PHPExcel_Best_Fit | |
_calculateGoodnessOfFit ($sumX, $sumY, $sumX2, $sumY2, $sumXY, $meanX, $meanY, $const) | |
_leastSquareFit ($yValues, $xValues, $const) | |
Definition at line 40 of file polynomialBestFitClass.php.
PHPExcel_Polynomial_Best_Fit::__construct | ( | $order, | |
$yValues, | |||
$xValues = array() , |
|||
$const = True |
|||
) |
Define the regression and calculate the goodness of fit for a set of X and Y data values.
int | $order | Order of Polynomial for this regression |
float[] | $yValues The set of Y-values for this regression | |
float[] | $xValues The set of X-values for this regression | |
boolean | $const |
Definition at line 209 of file polynomialBestFitClass.php.
References _polynomial_regression(), and PHPExcel_Best_Fit\getGoodnessOfFit().
|
private |
Execute the regression and calculate the goodness of fit for a set of X and Y data values.
int | $order | Order of Polynomial for this regression |
float[] | $yValues The set of Y-values for this regression | |
float[] | $xValues The set of X-values for this regression | |
boolean | $const |
Definition at line 152 of file polynomialBestFitClass.php.
References PHPExcel_Best_Fit\$_valueCount, $i, $r, PHPExcel_Best_Fit\_calculateGoodnessOfFit(), array, and getValueOfYForX().
Referenced by __construct().
PHPExcel_Polynomial_Best_Fit::getCoefficients | ( | $dp = 0 | ) |
Definition at line 139 of file polynomialBestFitClass.php.
References array, PHPExcel_Best_Fit\getIntersect(), and getSlope().
PHPExcel_Polynomial_Best_Fit::getEquation | ( | $dp = 0 | ) |
Return the Equation of the best-fit line.
int | $dp | Number of places of decimal precision to display |
Definition at line 104 of file polynomialBestFitClass.php.
References $key, PHPExcel_Best_Fit\getIntersect(), and getSlope().
PHPExcel_Polynomial_Best_Fit::getOrder | ( | ) |
Return the order of this polynomial.
Definition at line 64 of file polynomialBestFitClass.php.
References $_order.
PHPExcel_Polynomial_Best_Fit::getSlope | ( | $dp = 0 | ) |
Return the Slope of the line.
int | $dp | Number of places of decimal precision to display |
Definition at line 127 of file polynomialBestFitClass.php.
References PHPExcel_Best_Fit\$_slope, and array.
Referenced by getCoefficients(), getEquation(), getValueOfXForY(), and getValueOfYForX().
PHPExcel_Polynomial_Best_Fit::getValueOfXForY | ( | $yValue | ) |
Return the X-Value for a specified value of Y.
float | $yValue | Y-Value |
Definition at line 93 of file polynomialBestFitClass.php.
References PHPExcel_Best_Fit\getIntersect(), and getSlope().
PHPExcel_Polynomial_Best_Fit::getValueOfYForX | ( | $xValue | ) |
Return the Y-Value for a specified value of X.
float | $xValue | X-Value |
Definition at line 75 of file polynomialBestFitClass.php.
References $key, PHPExcel_Best_Fit\getIntersect(), and getSlope().
Referenced by _polynomial_regression().
|
protected |
Definition at line 48 of file polynomialBestFitClass.php.
|
protected |
Definition at line 56 of file polynomialBestFitClass.php.
Referenced by getOrder().