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.
floatReal value given to equation.
arrayCoefficients used in calculation.
floatValue result of equation.getNumberOfCoefficients() : integer
integerThe number of coefficients for the equation being used.partialDifferential(float $x, integer $coefficientIndex, array $coefficients) : float
floatValue of x to supply to partial-differential function.
integerWhich coefficient to be used in the partial-differential function.
arrayValues of the coefficients to be used.
floatp( x ) for the supplied input.