net.sourceforge.cilib.functions.continuous
Class Schaffer2
java.lang.Object
net.sourceforge.cilib.functions.Function
net.sourceforge.cilib.functions.ContinuousFunction
net.sourceforge.cilib.functions.continuous.Schaffer2
- All Implemented Interfaces:
- Serializable, Cloneable
public class Schaffer2
- extends ContinuousFunction
- Author:
- engel
- See Also:
- Serialized Form
Constructor Summary |
Schaffer2()
Creates a new instance of Schaffer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Schaffer2
public Schaffer2()
- Creates a new instance of Schaffer. Domain defaults to R(-100, 100)^2
getClone
public Schaffer2 getClone()
- Create a cloned copy of the current object and return it. In general
the created copy will be a deep copy of the provided instance. As
a result this operation an be quite expensive if used incorrectly.
- Specified by:
getClone
in interface Cloneable
- Specified by:
getClone
in class ContinuousFunction
- Returns:
- An exact clone of the current object instance.
- See Also:
Object.clone()
getMinimum
public Object getMinimum()
- Accessor for the function minimum. This is the minimum value of the function in the given
domain.
- Overrides:
getMinimum
in class ContinuousFunction
- Returns:
- The minimum function value.
evaluate
public double evaluate(Vector x)
- Evaluate the function with the given
Vector
as input.
- Specified by:
evaluate
in class ContinuousFunction
- Parameters:
x
- The input Vector
.
- Returns:
- The value of the evaluation.
Copyright © 2009 CIRG. All Rights Reserved.