net.sourceforge.cilib.functions.continuous
Class ContinuousStep

java.lang.Object
  extended by net.sourceforge.cilib.functions.Function
      extended by net.sourceforge.cilib.functions.ContinuousFunction
          extended by net.sourceforge.cilib.functions.continuous.ContinuousStep
All Implemented Interfaces:
Serializable, Cloneable

public class ContinuousStep
extends ContinuousFunction

The continuous Step function. It is the same as the normal step function, however, it is continuous and not discrete.

The default domain of the function is defined to be R(-100.0, 100.0)^30

Author:
Andries Engelbrecht
See Also:
Serialized Form

Constructor Summary
ContinuousStep()
          Creates a new instance of Step.
 
Method Summary
 double evaluate(Vector x)
          Evaluate the function with the given Vector as input.
 ContinuousStep getClone()
          Create a cloned copy of the current object and return it.
 Object getMaximum()
          Get the defined maximum of the Function.
 Object getMinimum()
          Get the defined minimum of the Function.
 
Methods inherited from class net.sourceforge.cilib.functions.ContinuousFunction
evaluate
 
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

ContinuousStep

public ContinuousStep()
Creates a new instance of Step.

Method Detail

getClone

public ContinuousStep 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()
Get the defined minimum of the Function. The minimum is defined to be the value of 0.0.

Overrides:
getMinimum in class ContinuousFunction
Returns:
An Object containing the value 0.0.

getMaximum

public Object getMaximum()
Get the defined maximum of the Function. The maximum value is defined to be the value of 55.0.

Overrides:
getMaximum in class ContinuousFunction
Returns:
An Object containing the value 55.0.

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.