|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Function
Interface for functions that can be displayed with FunctionView
and processed by the various operators.
Method Summary | |
---|---|
double |
f(double x)
Returns the function value at the given x-coordinate. |
java.lang.String |
getAlias()
Returns a string with a user-defined alias name for the function. |
double |
getGradientAt(double x)
Returns the gradient at the given x-coordinate or Double.NaN if it
does not exist or is not implemented for this function. |
java.lang.String |
getLabel()
Returns a string with an automatically created label for the function. |
double |
getMaxX()
Returns the maximum x-coordinate for which the function is defined (mainly for drawing purposes). |
double |
getMinX()
Returns the minimum x-coordinate for which the function is defined (mainly for drawing purposes). |
void |
setAlias(java.lang.String alias)
Allows the user to set an alias name for the function which overrides the automatically created label. |
Method Detail |
---|
double getMinX()
double getMaxX()
double f(double x)
x
- the x-coordinate
double getGradientAt(double x)
Double.NaN
if it
does not exist or is not implemented for this function.
x
- the x-coordinate
Double.NaN
if not definedjava.lang.String getLabel()
null
.
java.lang.String getAlias()
void setAlias(java.lang.String alias)
alias
- the alias name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |