neural.net
Class ActivationFunctionSigmoid

java.lang.Object
  extended by neural.net.ActivationFunctionSigmoid
All Implemented Interfaces:
java.io.Serializable, ActivationFunction

public class ActivationFunctionSigmoid
extends java.lang.Object
implements ActivationFunction

Implementation of the Sigmoid Activation Function

Version:
1.0.0
Author:
Jonathan Reimels
See Also:
Serialized Form

Constructor Summary
ActivationFunctionSigmoid()
           
 
Method Summary
 double activate(double input)
          The sigmoid activation function
 double derivative(double input)
          The derivative of the sigmoid function
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActivationFunctionSigmoid

public ActivationFunctionSigmoid()
Method Detail

activate

public double activate(double input)
The sigmoid activation function

Specified by:
activate in interface ActivationFunction
Parameters:
input - - the input to process, should be the sum of weights and input to a neuron
Returns:
output

derivative

public double derivative(double input)
The derivative of the sigmoid function

Specified by:
derivative in interface ActivationFunction
Parameters:
input - - the input to process through the derivative function
Returns:
output