|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.cilib.functions.Function
public abstract class Function
All functions should inherit from Function
.
Constructor Summary | |
---|---|
Function()
Create a new instance of Function. |
|
Function(Function copy)
Create a copy of the provided instance. |
Method Summary | |
---|---|
abstract Double |
evaluate(Type x)
Each function must provide an implementation which returns the function value at the given position. |
DomainRegistry |
getBehavioralDomainRegistry()
|
int |
getDimension()
|
String |
getDomain()
|
DomainRegistry |
getDomainRegistry()
Accessor for the domain of the function. |
abstract Object |
getMaximum()
Accessor for the function maximum. |
abstract Object |
getMinimum()
Accessor for the function minimum. |
void |
setBehavioralDomain(String behavioralDomain)
Set the behavioural domain of the Function. |
void |
setBehaviouralDomainRegistry(StringBasedDomainRegistry behavioralDomainRegistry)
|
void |
setDomain(String representation)
Sets the domain of the function. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sourceforge.cilib.util.Cloneable |
---|
getClone |
Constructor Detail |
---|
public Function()
public Function(Function copy)
copy
- The instance to copy.Method Detail |
---|
public int getDimension()
public DomainRegistry getDomainRegistry()
net.sourceforge.cilib.Domain.Component
.
public DomainRegistry getBehavioralDomainRegistry()
public void setBehaviouralDomainRegistry(StringBasedDomainRegistry behavioralDomainRegistry)
behavioralDomainRegistry
- The behaviouralDomainRegistry to set.public String getDomain()
public void setDomain(String representation)
representation
- the string representation for the function domain.public void setBehavioralDomain(String behavioralDomain)
behavioralDomain
- The value to set.public abstract Object getMinimum()
public abstract Object getMaximum()
public abstract Double evaluate(Type x)
x
- the position
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |