|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.cilib.functions.Function net.sourceforge.cilib.functions.ContinuousFunction net.sourceforge.cilib.functions.continuous.unconstrained.Rastrigin
public class Rastrigin
The rastrigin function.
Reference: X. Yao and Y. Liu and G. Liu, Evolutionary Programming Made Faster, IEEE Transactions on Evolutionary Computation, vol 3, number 2, pages 82--102, 1999.
Characteristics:
Constructor Summary | |
---|---|
Rastrigin()
Create an instance of the Rastrigin function. |
Method Summary | |
---|---|
double |
evaluate(Vector x)
Evaluate the function with the given Vector as input. |
Rastrigin |
getClone()
Create a cloned copy of the current object and return it. |
Vector |
getGradient(Vector x)
Obtain the gradient Vector for the provided input Vector . |
Object |
getMinimum()
Accessor for the function minimum. |
Methods inherited from class net.sourceforge.cilib.functions.ContinuousFunction |
---|
evaluate, getMaximum |
Methods inherited from class net.sourceforge.cilib.functions.Function |
---|
getBehavioralDomainRegistry, getDimension, getDomain, getDomainRegistry, setBehavioralDomain, setBehaviouralDomainRegistry, setDomain |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Rastrigin()
Method Detail |
---|
public Rastrigin getClone()
getClone
in interface Cloneable
getClone
in class ContinuousFunction
Object.clone()
public Object getMinimum()
getMinimum
in class ContinuousFunction
public double evaluate(Vector x)
Vector
as input.
evaluate
in class ContinuousFunction
x
- The input Vector
.
public Vector getGradient(Vector x)
Vector
for the provided input Vector
.
The gradient is, naturally, the derivative of the
Function
which implements this
interface.
getGradient
in interface Differentiable
x
- The provided input Vector
to calculate the derivative at.
Vector
containing
the gradient of the provided input.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |