|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.graphbuilder.math.func.SumFunction
The sum function.
| Constructor Summary | |
SumFunction()
|
|
| Method Summary | |
boolean |
acceptNumParam(int numParam)
Returns true for 1 or more parameters, false otherwise. |
double |
of(double[] d,
int numParam)
Returns the sum of the values in the array from [0, numParam). |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public SumFunction()
| Method Detail |
public double of(double[] d,
int numParam)
of in interface Functionpublic boolean acceptNumParam(int numParam)
acceptNumParam in interface Functionpublic java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||