|
SSJ V. labo. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectumontreal.iro.lecuyer.functions.PowerMathFunction
public class PowerMathFunction
Represents a function computing (af (x) + b)p for a user-defined function f (x) and power p.
| Constructor Summary | |
|---|---|
PowerMathFunction(MathFunction func,
double power)
Constructs a new power function for function func and power power. |
|
PowerMathFunction(MathFunction func,
double a,
double b,
double power)
Constructs a new power function for function func, power power, and constants a and b. |
|
| Method Summary | |
|---|---|
double |
derivative(double x)
Computes (or estimates) the first derivative of the function at point x. |
double |
evaluate(double x)
Returns the value of the function evaluated at x. |
double |
getA()
Returns the value of a. |
double |
getB()
Returns the value of b. |
MathFunction |
getFunction()
Returns the function f (x). |
double |
getPower()
Returns the power p. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PowerMathFunction(MathFunction func,
double power)
func - the function f (x).power - the power p.
public PowerMathFunction(MathFunction func,
double a,
double b,
double power)
func - the function f (x).power - the power p.a - the multiplicative constant.b - the additive constant.| Method Detail |
|---|
public MathFunction getFunction()
public double getA()
public double getB()
public double getPower()
public double derivative(double x)
MathFunctionWithFirstDerivative
derivative in interface MathFunctionWithFirstDerivativex - the point to evaluate the derivative to.
public double evaluate(double x)
MathFunction
evaluate in interface MathFunctionx - value at which the function is evaluated
|
SSJ V. labo. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||