edu.stanford.multiagent.gamer.functions
Class VectorFunction

java.lang.Object
  |
  +--edu.stanford.multiagent.gamer.ParameterizedObject
        |
        +--edu.stanford.multiagent.gamer.functions.VectorFunction

public abstract class VectorFunction
extends ParameterizedObject

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

VectorFunction

public VectorFunction()
               throws java.lang.Exception
Constructor for a vector function.

Method Detail

getArity

public abstract int getArity()
Returns the arity of the function


eval

public abstract double eval(double[] x)
Returns the value of the function evaluated on x.

Parameters:
x - an array of values on which the function should be executed

initialize

public void initialize()
                throws java.lang.Exception
Initializes the vector function.

Overrides:
initialize in class ParameterizedObject
Throws:
java.lang.Exception