|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FunctionAPI
This API defines the basic structure of a function. A function is a mapping of values from a domain to a range where each value in the domain maps to at most one value in the range. Due to double floating point precision errors, all comparisons should be done within a reasonable tolerance for the scope of the implementing function.
-=* CHNAGE LOG *=- 06/19/2008 -- EMM: Original implementation.
| Method Summary | |
|---|---|
SetAPI |
getDomain()
Gets the domain of this function. |
String |
getName()
Gets the name of this function. |
SetAPI |
getRange()
Gets the range of this function. |
double |
valueOf(double x)
Gets the value of the function at the point x. |
| Method Detail |
|---|
String getName()
null.
SetAPI getDomain()
SetAPI getRange()
double valueOf(double x)
throws IllegalArgumentException
x. If the given
x value is not in the domain for the function, then an
IllegalArgumentException is thrown.
x - The input value of the function.
IllegalArgumentException - If the given input x value
is not in the domain of the function.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||