|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Function
A Function is a mathematical real-valued function of zero or more real-valued arguments. The number of arguments is called the arity of the function.
Method Summary | |
---|---|
boolean |
dependsOn(Variable x)
Return true if the defintion of this function depends in some way on the variable x. |
Function |
derivative(int wrt)
Return the derivative of the function with repect to argument number wrt. |
Function |
derivative(Variable x)
Return the derivative of the function with respect to the variable x. |
int |
getArity()
Return the number of arguments of this function. |
double |
getVal(double[] arguments)
Find the value of the function at the argument values given by arguments[0], arguments[1], ... |
double |
getValueWithCases(double[] arguments,
Cases cases)
Find the value of the function at the argument values given by arguments[0], arguments[1], ... |
Method Detail |
---|
int getArity()
double getVal(double[] arguments)
arguments
- array of argument values
double getValueWithCases(double[] arguments, Cases cases)
arguments
- array of argument valuescases
- the cases to use
Function derivative(int wrt)
wrt
- argument Number with respect to
Function derivative(Variable x)
x
- variable with respect to
boolean dependsOn(Variable x)
x
- variable to check
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |