Overview

Packages

  • JAMA
  • None
  • PHP
  • PHPExcel
    • CachedObjectStorage
    • Calculation
    • Cell
    • Chart
      • Renderer
    • Reader
      • Excel2007
      • Excel5
    • RichText
    • Settings
    • Shared
      • Escher
      • OLE
      • Trend
      • ZipArchive
    • Style
    • Worksheet
      • Drawing
    • Writer
      • 2007
      • CSV
      • Excel2007
      • Excel5
      • HTML
      • PDF

Classes

  • PHPExcel_Best_Fit
  • PHPExcel_Exponential_Best_Fit
  • PHPExcel_Linear_Best_Fit
  • PHPExcel_Logarithmic_Best_Fit
  • PHPExcel_Polynomial_Best_Fit
  • PHPExcel_Power_Best_Fit
  • trendClass
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo
  • Download

Class PHPExcel_Polynomial_Best_Fit

PHPExcel_Polynomial_Best_Fit

PHPExcel_Best_Fit
Extended by PHPExcel_Polynomial_Best_Fit
Package: PHPExcel\Shared\Trend
Category: PHPExcel
Copyright: Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
License: LGPL
Located at controlador/include/phpexcel/PHPExcel/Shared/trend/polynomialBestFitClass.php
Methods summary
public integer
# getOrder( )

Return the order of this polynomial

Return the order of this polynomial

Returns

integer
public float
# getValueOfYForX( float $xValue )

Return the Y-Value for a specified value of X

Return the Y-Value for a specified value of X

Parameters

$xValue
X-Value

Returns

float
Y-Value

Overrides

PHPExcel_Best_Fit::getValueOfYForX()
public float
# getValueOfXForY( float $yValue )

Return the X-Value for a specified value of Y

Return the X-Value for a specified value of Y

Parameters

$yValue
Y-Value

Returns

float
X-Value

Overrides

PHPExcel_Best_Fit::getValueOfXForY()
public string
# getEquation( integer $dp = 0 )

Return the Equation of the best-fit line

Return the Equation of the best-fit line

Parameters

$dp
Number of places of decimal precision to display

Returns

string

Overrides

PHPExcel_Best_Fit::getEquation()
public string
# getSlope( integer $dp = 0 )

Return the Slope of the line

Return the Slope of the line

Parameters

$dp
Number of places of decimal precision to display

Returns

string

Overrides

PHPExcel_Best_Fit::getSlope()
public
# getCoefficients( $dp = 0 )
private
# _polynomial_regression( integer $order, float[] $yValues, float[] $xValues, boolean $const )

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

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

Parameters

$order
Order of Polynomial for this regression
$yValues
The set of Y-values for this regression
$xValues
The set of X-values for this regression
$const
public
# __construct( integer $order, 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

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

Parameters

$order
Order of Polynomial for this regression
$yValues
The set of Y-values for this regression
$xValues
The set of X-values for this regression
$const

Overrides

PHPExcel_Best_Fit::__construct()
Methods inherited from PHPExcel_Best_Fit
_calculateGoodnessOfFit(), _leastSquareFit(), getBestFitType(), getCorrelation(), getCovariance(), getDFResiduals(), getError(), getF(), getGoodnessOfFit(), getGoodnessOfFitPercent(), getIntersect(), getIntersectSE(), getSSRegression(), getSSResiduals(), getSlopeSE(), getStdevOfResiduals(), getXValues(), getYBestFitValues()
Properties summary
protected string $_bestFitType

Algorithm type to use for best-fit (Name of this trend class)

Algorithm type to use for best-fit (Name of this trend class)

# 'polynomial'
protected integer $_order

Polynomial order

Polynomial order

Protected

# 0
Properties inherited from PHPExcel_Best_Fit
$_DFResiduals, $_F, $_SSRegression, $_SSResiduals, $_Xoffset, $_Yoffset, $_adjustToZero, $_correlation, $_covariance, $_error, $_goodnessOfFit, $_intersect, $_intersectSE, $_slope, $_slopeSE, $_stdevOfResiduals, $_valueCount, $_xValues, $_yBestFitValues, $_yValues
Autene API documentation generated by ApiGen