net.sourceforge.cilib.functions
Class ContinuousFunction

java.lang.Object
  extended by net.sourceforge.cilib.functions.Function
      extended by net.sourceforge.cilib.functions.ContinuousFunction
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
AbsoluteValue, Ackley, AngleModulation, Beale, Bird, Bohachevsky1, Bohachevsky2, Bohachevsky3, Booth, Branin, Bukin4, Bukin6, ClusteringFitnessFunction, Colville, ContinuousStep, Damavandi, Easom, ExpressionFunction, FDA1_f1, FDA1_f2, FDA1_g, FDA1_h, FDA2_f1, FDA2_f2, FDA2_g, FDA2_h, Foxholes, FunctionDimensionMapping, GoldsteinPrice, Griewank, Himmelblau, HyperEllipsoid, InvertedFunctionDecorator, MaximumDeratingFunction1, Michalewicz, Michalewicz12, MovingPeaks, MultimodalFunction1, MultimodalFunction2, MultimodalFunction3, MultimodalFunction4, MultimodalFunction5, NastyBenchmark, Neumaier3, NichePSOF1, NoisyFunctionDecorator, Quadric, Quartic, Rastrigin, ReflectedFunctionDecorator, Ripple, Rosenbrock, RotatedFunctionDecorator, Salomon, ScaledFunctionDecorator, Schaffer2, Schaffer6, Schwefel, SchwefelProblem1_2, SchwefelProblem2_21, SchwefelProblem2_22, SchwefelProblem2_26, ShekelN, ShekelsFoxholes, ShiftedFunctionDecorator, Shir, Shubert, SixHumpCamelBack, Spherical, Step, UrsemF1, UrsemF3, UrsemF4

public abstract class ContinuousFunction
extends Function

Author:
Edwin Peer, Olusegun Olorunda
See Also:
Serialized Form

Constructor Summary
ContinuousFunction()
          Create an instance of ContinuousFunction.
ContinuousFunction(ContinuousFunction copy)
          Copy constructor.
 
Method Summary
 Double evaluate(Type x)
          Each function must provide an implementation which returns the function value at the given position.
abstract  double evaluate(Vector x)
          Evaluate the function with the given Vector as input.
abstract  ContinuousFunction getClone()
          Create a cloned copy of the current object and return it.
 Object getMaximum()
          Accessor for the function maximum.
 Object getMinimum()
          Accessor for the function minimum.
 
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

ContinuousFunction

public ContinuousFunction()
Create an instance of ContinuousFunction.


ContinuousFunction

public ContinuousFunction(ContinuousFunction copy)
Copy constructor. Create a copy of the provided instance.

Parameters:
copy - The instance to copy.
Method Detail

getClone

public abstract ContinuousFunction 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.

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.

Specified by:
getMinimum in class Function
Returns:
The minimum function value.

getMaximum

public Object getMaximum()
Accessor for the function maximum. This is the maximum value of the function in the given domain.

Specified by:
getMaximum in class Function
Returns:
The maximum of the function.

evaluate

public Double evaluate(Type x)
Each function must provide an implementation which returns the function value at the given position. The length of the position array should be the same as the function dimension.

Specified by:
evaluate in class Function
Parameters:
x - the position
Returns:
The result of the evaluation.

evaluate

public abstract double evaluate(Vector x)
Evaluate the function with the given Vector as input.

Parameters:
x - The input Vector.
Returns:
The value of the evaluation.


Copyright © 2009 CIRG. All Rights Reserved.