|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.graphbuilder.math.func.SignFunction
The sign function.
Constructor Summary | |
SignFunction()
|
Method Summary | |
boolean |
acceptNumParam(int numParam)
Returns true only for 1 parameter, false otherwise. |
double |
of(double[] d,
int numParam)
The sign function returns 1 if the d[0] > 0, -1 if d[0] < 0, else 0. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SignFunction()
Method Detail |
public double of(double[] d, int numParam)
of
in interface Function
public boolean acceptNumParam(int numParam)
acceptNumParam
in interface Function
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |