|
||||||||||
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.activation.ActivationFunction net.sourceforge.cilib.functions.activation.Sigmoid
public class Sigmoid
The generalised sigmoid function. The function is the general case of the sigmoid function with the ability to specify the steepness of the function as well as an offset that should be taken into consideration.
Constructor Summary | |
---|---|
Sigmoid()
Create a new instance of Sigmoid . |
Method Summary | |
---|---|
Double |
evaluate(Number number)
Determine the value of the ActivationFunction at the provided point . |
Double |
evaluate(Type x)
Each function must provide an implementation which returns the function value at the given position. |
Sigmoid |
getClone()
Create a cloned copy of the current object and return it. |
Double |
getGradient(Number number)
Determine the gradient of the ActivationFunction at the given point. |
Vector |
getGradient(Vector x)
Obtain the gradient Vector for the provided input Vector . |
Object |
getMaximum()
Accessor for the function maximum. |
Object |
getMinimum()
Accessor for the function minimum. |
ControlParameter |
getOffset()
Get the offset associated with the function. |
ControlParameter |
getSteepness()
Get the steepness associated with the Sigmoid. |
void |
setOffset(ControlParameter offset)
Set the ControlParameter to represent the offset of the function. |
void |
setSteepness(ControlParameter steepness)
Set the ControlParameter to represent the steepness of the function. |
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 Sigmoid()
Sigmoid
. The default instance has the steepness
control parameter set
to a value of 1.0
, with the offset
defined as 0.0
.
Method Detail |
---|
public Sigmoid getClone()
Object.clone()
public Double evaluate(Type x)
evaluate
in class ActivationFunction
x
- the position
public Double evaluate(Number number)
ActivationFunction
at the provided point
.
The provided point
is simply a Number that is provided as input.
evaluate
in class ActivationFunction
number
- The input value.
ActivationFunction
, given number
as
input.public Object getMaximum()
getMaximum
in class Function
public Object getMinimum()
getMinimum
in class Function
public Vector getGradient(Vector x)
Vector
for the provided input Vector
.
The gradient is, naturally, the derivative of the
Function
which implements this
interface.
x
- The provided input Vector
to calculate the derivative at.
Vector
containing
the gradient of the provided input.public Double getGradient(Number number)
ActivationFunction
at the given point.
getGradient
in class ActivationFunction
number
- The point
at which the gradient is to be determined.
public ControlParameter getSteepness()
public void setSteepness(ControlParameter steepness)
steepness
- The value to set.public ControlParameter getOffset()
public void setOffset(ControlParameter offset)
offset
- The value to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |