f( x ) = a * x^b + c Regression for the basic exponentiation function.
Note that this function can also be used for inverse functions in the form f( x ) = a / x^b + c be having a negative value for b.
package | GaussNewtonRegression |
---|---|
subpackage | ExponentiationRegression |
getFunction(float $x, array $coefficients) : float
Return f( x ) for a given set of coefficients.
float
Real value given to equation.
array
Coefficients used in calculation.
float
Value result of equation.getNumberOfCoefficients() : integer
integer
The number of coefficients for the equation being used.partialDifferential(float $x, integer $coefficientIndex, array $coefficients) : float
float
Value of x to supply to partial-differential function.
integer
Which coefficient to be used in the partial-differential function.
array
Values of the coefficients to be used.
float
p( x ) for the supplied input.