|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.cilib.functions.Function
net.sourceforge.cilib.functions.DiscreteFunction
net.sourceforge.cilib.functions.discrete.BinaryAdapter
public class BinaryAdapter
Class to convert a binary vector into a continuous vector for optimisation of continous problems by a binary optimiser. This still needs some experimental work though, to verify that it is working
| Constructor Summary | |
|---|---|
BinaryAdapter()
Constructor. |
|
| Method Summary | |
|---|---|
Vector |
decodeBitString(Vector bits)
|
double |
evaluate(Vector vector)
Evaluate the net.sourceforge.cilib.type.types.Vector by
decoding the binary vector into a continuous vector and evaluate the results
by feeding the result into the wrapped funtion. |
int |
getBitsPerDimension()
|
BinaryAdapter |
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()
|
void |
setBitsPerDimension(int bitsPerDimension)
|
void |
setDomain(String representation)
Sets the domain of the function. |
void |
setFunction(Function function)
|
void |
setPrecision(int precision)
|
double |
valueOf(Vector vector,
int i,
int j)
|
| Methods inherited from class net.sourceforge.cilib.functions.DiscreteFunction |
|---|
evaluate |
| Methods inherited from class net.sourceforge.cilib.functions.Function |
|---|
getBehavioralDomainRegistry, getDimension, getDomain, getDomainRegistry, setBehavioralDomain, setBehaviouralDomainRegistry |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BinaryAdapter()
| Method Detail |
|---|
public BinaryAdapter getClone()
Cloneable
Object.clone()public double evaluate(Vector vector)
net.sourceforge.cilib.type.types.Vector by
decoding the binary vector into a continuous vector and evaluate the results
by feeding the result into the wrapped funtion.
evaluate in class DiscreteFunctionvector - The Bit vector to evaluate
public Object getMinimum()
DiscreteFunction
getMinimum in class DiscreteFunctionpublic Object getMaximum()
DiscreteFunction
getMaximum in class DiscreteFunctionpublic int getBitsPerDimension()
public void setBitsPerDimension(int bitsPerDimension)
bitsPerDimension - The bitsPerDimension to set.public int getPrecision()
public void setPrecision(int precision)
precision - The precision to set.public Function getFunction()
public void setFunction(Function function)
function - The function to set.public Vector decodeBitString(Vector bits)
bits -
public double valueOf(Vector vector,
int i,
int j)
str - i - j -
public void setDomain(String representation)
Function
setDomain in class Functionrepresentation - the string representation for the function domain.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||