PHPExcel_Shared_Trend
[ class tree: PHPExcel_Shared_Trend ] [ index: PHPExcel_Shared_Trend ] [ all elements ]

Class: PHPExcel_Polynomial_Best_Fit

Source Location: /PHPExcel/Shared/trend/polynomialBestFitClass.php

Class Overview

PHPExcel_Best_Fit
   |
   --PHPExcel_Polynomial_Best_Fit

PHPExcel_Polynomial_Best_Fit


Author(s):

Copyright:

  • Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 40]
PHPExcel_Polynomial_Best_Fit



Tags:

copyright:  Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)


[ Top ]


Class Variables

$_bestFitType =  'polynomial'

[line 48]

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



Tags:

access:  protected

Type:   string
Overrides:   Array


[ Top ]

$_order =  0

[line 56]

Polynomial order



Tags:

access:  protected

Type:   int


[ Top ]



Class Methods


constructor __construct [line 209]

PHPExcel_Polynomial_Best_Fit __construct( int $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



Overrides PHPExcel_Best_Fit::__construct() (Define the regression)

Parameters:

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  

[ Top ]

method getCoefficients [line 139]

void getCoefficients( [ $dp = 0])



Tags:

access:  public


Parameters:

   $dp  

[ Top ]

method getEquation [line 104]

string getEquation( [int $dp = 0])

Return the Equation of the best-fit line



Tags:

access:  public


Overrides PHPExcel_Best_Fit::getEquation() (Return the Equation of the best-fit line)

Parameters:

int   $dp   Number of places of decimal precision to display

[ Top ]

method getOrder [line 64]

int getOrder( )

Return the order of this polynomial



Tags:

access:  public


[ Top ]

method getSlope [line 127]

string getSlope( [int $dp = 0])

Return the Slope of the line



Tags:

access:  public


Overrides PHPExcel_Best_Fit::getSlope() (Return the Slope of the line)

Parameters:

int   $dp   Number of places of decimal precision to display

[ Top ]

method getValueOfXForY [line 93]

float getValueOfXForY( float $yValue)

Return the X-Value for a specified value of Y



Tags:

return:  X-Value
access:  public


Overrides PHPExcel_Best_Fit::getValueOfXForY() (Return the X-Value for a specified value of Y)

Parameters:

float   $yValue   Y-Value

[ Top ]

method getValueOfYForX [line 75]

float getValueOfYForX( float $xValue)

Return the Y-Value for a specified value of X



Tags:

return:  Y-Value
access:  public


Overrides PHPExcel_Best_Fit::getValueOfYForX() (Return the Y-Value for a specified value of X)

Parameters:

float   $xValue   X-Value

[ Top ]


Documentation generated on Fri, 12 Oct 2012 00:17:28 +0200 by phpDocumentor 1.4.4