|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.stanford.multiagent.gamer.ParameterizedObject | +--edu.stanford.multiagent.gamer.functions.VectorFunction
An abstract class to support functions on vectors of values.
Field Summary |
Fields inherited from class edu.stanford.multiagent.gamer.ParameterizedObject |
parameters |
Constructor Summary | |
VectorFunction()
Constructor for a vector function. |
Method Summary | |
abstract double |
eval(double[] x)
Returns the value of the function evaluated on x. |
abstract int |
getArity()
Returns the arity of the function |
void |
initialize()
Initializes the vector function. |
Methods inherited from class edu.stanford.multiagent.gamer.ParameterizedObject |
checkParameters, doGenerate, getBooleanParameter, getDescription, getDoubleParameter, getHelp, getLongParameter, getParamDescription, getParameter, getParameters, getStringParameter, randomizeParameters, setParameter, setParameter, setParameters, setParameters |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public VectorFunction() throws java.lang.Exception
Method Detail |
public abstract int getArity()
public abstract double eval(double[] x)
x
- an array of values on which the function should
be executedpublic void initialize() throws java.lang.Exception
initialize
in class ParameterizedObject
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |