[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/lib/phpexcel/PHPExcel/Shared/trend/ -> polynomialBestFitClass.php (summary)

(no description)

File Size: 222 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

PHPExcel_Polynomial_Best_Fit:: (8 methods):
  getOrder()
  getValueOfYForX()
  getValueOfXForY()
  getEquation()
  getSlope()
  getCoefficients()
  polynomialRegression()
  __construct()


Class: PHPExcel_Polynomial_Best_Fit  - X-Ref

PHPExcel_Polynomial_Best_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

getOrder()   X-Ref
Return the order of this polynomial

return: int

getValueOfYForX($xValue)   X-Ref
Return the Y-Value for a specified value of X

param: float        $xValue            X-Value
return: float                        Y-Value

getValueOfXForY($yValue)   X-Ref
Return the X-Value for a specified value of Y

param: float        $yValue            Y-Value
return: float                        X-Value

getEquation($dp = 0)   X-Ref
Return the Equation of the best-fit line

param: int        $dp        Number of places of decimal precision to display
return: string

getSlope($dp = 0)   X-Ref
Return the Slope of the line

param: int        $dp        Number of places of decimal precision to display
return: string

getCoefficients($dp = 0)   X-Ref
No description

polynomialRegression($order, $yValues, $xValues, $const)   X-Ref
Execute the regression and calculate the goodness of fit for a set of X and Y data values

param: int            $order        Order of Polynomial for this regression
param: float[]        $yValues    The set of Y-values for this regression
param: float[]        $xValues    The set of X-values for this regression
param: boolean        $const

__construct($order, $yValues, $xValues = array()   X-Ref
Define the regression and calculate the goodness of fit for a set of X and Y data values

param: int            $order        Order of Polynomial for this regression
param: float[]        $yValues    The set of Y-values for this regression
param: float[]        $xValues    The set of X-values for this regression
param: boolean        $const



Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1