net.sourceforge.cilib.functions.continuous.dynamic
Class MovingPeaks

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

public class MovingPeaks
extends ContinuousFunction
implements DynamicFunction

Author:
csbmcd, Anna Rakitianskaia
See Also:
Serialized Form

Field Summary
 net.sourceforge.cilib.functions.continuous.dynamic.MovingPeaks.BasisFunction bf
           
protected  double lambda
           
 double[][] peak
           
 net.sourceforge.cilib.functions.continuous.dynamic.MovingPeaks.PeakFunction pf
           
protected  boolean useBasisFunction
           
 
Constructor Summary
MovingPeaks()
          Creates a new instance of MovingPeaks.
 
Method Summary
 void changePeaks()
           
 boolean didChange()
           
 double dummyEval(double[] gen)
           
 double evaluate(Vector x)
          Evaluate the function with the given Vector as input.
 double evaluateMovpeaks(double[] gen)
           
 void freePeaks()
           
 double getAvgError()
           
 int getChangeFrequency()
          Get the current change frequency.
 MovingPeaks getClone()
          Create a cloned copy of the current object and return it.
 double getCurrentError()
           
 int getCurrentPeak()
           
 double getExclusionThreshold()
           
 double getMaxCoordinate()
           
 double getMaxHeight()
           
 Object getMaximum()
          Accessor for the function maximum.
 int getMaximumPeak()
           
 double getMinCoordinate()
           
 Object getMinimum()
          Accessor for the function minimum.
 int getNumberOfEvals()
           
 double getOfflineError()
           
 double getOfflinePerformance()
           
 double[] getPeakHeights()
           
 double[][] getPeakPositions()
           
 boolean getRightPeak()
           
 void initPeaks()
           
 void printPeakData()
           
 void setChangeFrequency(int cfr)
          Set the change frequency.
 
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
 

Field Detail

lambda

protected double lambda

useBasisFunction

protected boolean useBasisFunction

pf

public net.sourceforge.cilib.functions.continuous.dynamic.MovingPeaks.PeakFunction pf

bf

public net.sourceforge.cilib.functions.continuous.dynamic.MovingPeaks.BasisFunction bf

peak

public double[][] peak
Constructor Detail

MovingPeaks

public MovingPeaks()
Creates a new instance of MovingPeaks.

Method Detail

getClone

public MovingPeaks 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.

getMaximum

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

Overrides:
getMaximum in class ContinuousFunction
Returns:
The maximum of the function.

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.

setChangeFrequency

public void setChangeFrequency(int cfr)
Set the change frequency.

Parameters:
cfr - The given frequency.

getChangeFrequency

public int getChangeFrequency()
Get the current change frequency.

Returns:
The current change frequency.

didChange

public boolean didChange()

getExclusionThreshold

public double getExclusionThreshold()
Specified by:
getExclusionThreshold in interface DynamicFunction

initPeaks

public void initPeaks()

dummyEval

public double dummyEval(double[] gen)

evaluateMovpeaks

public double evaluateMovpeaks(double[] gen)

changePeaks

public void changePeaks()

freePeaks

public void freePeaks()

getAvgError

public double getAvgError()

getCurrentError

public double getCurrentError()

getOfflinePerformance

public double getOfflinePerformance()

getOfflineError

public double getOfflineError()

getNumberOfEvals

public int getNumberOfEvals()

getRightPeak

public boolean getRightPeak()

getPeakPositions

public double[][] getPeakPositions()

getPeakHeights

public double[] getPeakHeights()

printPeakData

public void printPeakData()

getCurrentPeak

public int getCurrentPeak()

getMaximumPeak

public int getMaximumPeak()

getMinCoordinate

public double getMinCoordinate()

getMaxCoordinate

public double getMaxCoordinate()

getMaxHeight

public double getMaxHeight()


Copyright © 2009 CIRG. All Rights Reserved.