|
||||||||||
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.decorators.AngleModulation
public class AngleModulation
A Decorator pattern class to wrap a normal function to perform Angle Modulation. The deault values for angle modulation are:
Constructor Summary | |
---|---|
AngleModulation()
|
|
AngleModulation(AngleModulation copy)
|
Method Summary | |
---|---|
double |
evaluate(Vector x)
Evaluate the function with the given Vector as input. |
String |
generateBitString(Vector x)
|
AngleModulation |
getClone()
Create a cloned copy of the current object and return it. |
Function |
getFunction()
|
Object |
getMaximum()
Accessor for the function maximum. |
Object |
getMinimum()
Accessor for the function minimum. |
int |
getPrecision()
|
int |
getRequiredNumberOfBits(DomainRegistry domain)
|
void |
setFunction(Function decoratedFunciton)
|
void |
setPrecision(int precision)
|
double |
valueOf(String bitString)
|
double |
valueOf(String bitString,
int index)
|
double |
valueOf(String bitString,
int startIndex,
int endIndex)
Determine the numeric value of the given bitstring. |
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 |
---|
public AngleModulation()
public AngleModulation(AngleModulation copy)
Method Detail |
---|
public AngleModulation getClone()
getClone
in interface Cloneable
getClone
in class ContinuousFunction
Object.clone()
public Object getMinimum()
getMinimum
in class ContinuousFunction
public Object getMaximum()
getMaximum
in class ContinuousFunction
public double evaluate(Vector x)
Vector
as input.
evaluate
in class ContinuousFunction
x
- The input Vector
.
public int getPrecision()
public void setPrecision(int precision)
precision
- public Function getFunction()
public void setFunction(Function decoratedFunciton)
decoratedFunciton
- public int getRequiredNumberOfBits(DomainRegistry domain)
domain
-
public String generateBitString(Vector x)
x
-
public double valueOf(String bitString, int startIndex, int endIndex)
bitString
- The bitsting as a stringstartIndex
- The starting indexendIndex
- The ending index
public double valueOf(String bitString, int index)
public double valueOf(String bitString)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |