edu.stanford.multiagent.gamer.functions
Class IncreasingPoly
java.lang.Object
|
+--edu.stanford.multiagent.gamer.ParameterizedObject
|
+--edu.stanford.multiagent.gamer.functions.Function
|
+--edu.stanford.multiagent.gamer.functions.PolyFunction
|
+--edu.stanford.multiagent.gamer.functions.IncreasingPoly
- public class IncreasingPoly
- extends PolyFunction
Class implements an increasing polynomial function of a single argument
| Fields inherited from class edu.stanford.multiagent.gamer.functions.Function |
dMax, dMin |
|
Method Summary |
protected void |
checkParameters()
Checks if Parameter values are consistent. |
protected java.lang.String |
getFunctionHelp()
Returns a help string describing the function and the
parameters taken by the function |
void |
initialize()
Calls initialize in the super class ParemeterizedObject which
checks parameters |
static void |
main(java.lang.String[] args)
Used only for testing |
void |
randomizeParameters()
Randomize things
This is not the most efficient algorithm. |
| Methods inherited from class edu.stanford.multiagent.gamer.ParameterizedObject |
getBooleanParameter, getDescription, getDoubleParameter, getLongParameter, getParamDescription, getParameter, getParameters, getStringParameter, setParameter, setParameter, setParameters, setParameters |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IncreasingPoly
public IncreasingPoly()
throws java.lang.Exception
IncreasingPoly
public IncreasingPoly(double[] coefs,
double dMin,
double dMax)
throws java.lang.Exception
getFunctionHelp
protected java.lang.String getFunctionHelp()
- Description copied from class:
Function
- Returns a help string describing the function and the
parameters taken by the function
- Overrides:
getFunctionHelp in class PolyFunction
initialize
public void initialize()
throws java.lang.Exception
- Description copied from class:
Function
- Calls initialize in the super class ParemeterizedObject which
checks parameters
- Overrides:
initialize in class PolyFunction
- Throws:
java.lang.Exception - if there is a problem with the parameters
checkParameters
protected void checkParameters()
throws java.lang.Exception
- Description copied from class:
ParameterizedObject
- Checks if Parameter values are consistent. Must be
implemented by every non-abstract subclass of
ParameterizedObject.
- Overrides:
checkParameters in class PolyFunction
- Throws:
java.lang.Exception - if anything is wrong with the parameter
values
randomizeParameters
public void randomizeParameters()
- Randomize things
This is not the most efficient algorithm. It works, but
something more robust can replace it later.
- Overrides:
randomizeParameters in class PolyFunction
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Used only for testing
java.lang.Exception