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

Class: PHPExcel_Exponential_Best_Fit

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

Class Overview

PHPExcel_Best_Fit
   |
   --PHPExcel_Exponential_Best_Fit

PHPExcel_Exponential_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_Exponential_Best_Fit



Tags:

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


[ Top ]


Class Variables

$_bestFitType =  'exponential'

[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 142]

PHPExcel_Exponential_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 getIntersect [line 106]

string getIntersect( [int $dp = 0])

Return the Value of X where it intersects Y = 0



Tags:

access:  public


Overrides PHPExcel_Best_Fit::getIntersect() (Return the Value of X where it intersects Y = 0)

Parameters:

int   $dp   Number of places of decimal precision to display

[ Top ]

method getSlope [line 92]

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