org.neuroph.core.transfer
Class Sigmoid
- java.lang.Object
-
- org.neuroph.core.transfer.TransferFunction
-
- org.neuroph.core.transfer.Sigmoid
-
- All Implemented Interfaces:
- java.io.Serializable
public class Sigmoid extends TransferFunction implements java.io.Serializable
Sigmoid neuron transfer function. output = 1/(1+ e^(-slope*input))
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description Sigmoid()Creates an instance of Sigmoid neuron transfer function with default slope=1.Sigmoid(double slope)Creates an instance of Sigmoid neuron transfer function with specified value for slope parametar.Sigmoid(Properties properties)Creates an instance of Sigmoid neuron transfer function with the specified properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublegetDerivative(double net)Returns the first derivative of this function.doublegetOutput(double netInput)Returns the ouput of this function.doublegetSlope()Returns the slope parametar of this functionvoidsetSlope(double slope)Sets the slope parametar for this function
-
-
-
Constructor Detail
-
Sigmoid
public Sigmoid()
Creates an instance of Sigmoid neuron transfer function with default slope=1.
-
Sigmoid
public Sigmoid(double slope)
Creates an instance of Sigmoid neuron transfer function with specified value for slope parametar.- Parameters:
slope- the slope parametar for the sigmoid function
-
Sigmoid
public Sigmoid(Properties properties)
Creates an instance of Sigmoid neuron transfer function with the specified properties.- Parameters:
properties- properties of the sigmoid function
-
-
Method Detail
-
getSlope
public double getSlope()
Returns the slope parametar of this function- Returns:
- slope parametar of this function
-
setSlope
public void setSlope(double slope)
Sets the slope parametar for this function- Parameters:
slope- value for the slope parametar
-
getOutput
public double getOutput(double netInput)
Description copied from class:TransferFunctionReturns the ouput of this function.- Specified by:
getOutputin classTransferFunction- Parameters:
netInput- total input
-
getDerivative
public double getDerivative(double net)
Description copied from class:TransferFunctionReturns the first derivative of this function. Note: should this method should be abstract?- Overrides:
getDerivativein classTransferFunction- Parameters:
net- total input
-
-
DMelt 3.0 © DataMelt by jWork.ORG