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

Class: PHPExcel_Linear_Best_Fit

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

Class Overview

PHPExcel_Best_Fit
   |
   --PHPExcel_Linear_Best_Fit

PHPExcel_Linear_Best_Fit


Author(s):

Copyright:

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

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 39]
PHPExcel_Linear_Best_Fit



Tags:

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


[ Top ]


Class Variables

$_bestFitType =  'linear'

[line 47]

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



Tags:

access:  protected

Type:   string
Overrides:   Array


[ Top ]



Class Methods


constructor __construct [line 105]

PHPExcel_Linear_Best_Fit __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



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

Parameters:

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

[ Top ]

method getEquation [line 78]

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 getValueOfXForY [line 67]

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 56]

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:16:34 +0200 by phpDocumentor 1.4.4