de.htwdd.rosenkoenig.neuro.net
Class Sigmoid

java.lang.Object
  extended by de.htwdd.rosenkoenig.neuro.net.Sigmoid
All Implemented Interfaces:
ActivationFunction

public class Sigmoid
extends java.lang.Object
implements ActivationFunction

A sigmoid activation function.


Field Summary
private static Sigmoid instance
          Create a new instance of the class to return to all that call the function getInstance.
 
Constructor Summary
private Sigmoid()
          Default ctor
 
Method Summary
 double compute(double value)
           
 double computeDerivation(double value)
           
static Sigmoid getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

private static Sigmoid instance
Create a new instance of the class to return to all that call the function getInstance.

Constructor Detail

Sigmoid

private Sigmoid()
Default ctor

Method Detail

compute

public double compute(double value)
Specified by:
compute in interface ActivationFunction
Parameters:
value - value to compute something from.
Returns:
result computed from value. Takes value and computes something from it using a function.

computeDerivation

public double computeDerivation(double value)
Specified by:
computeDerivation in interface ActivationFunction
Parameters:
value - value to compute something from.
Returns:
result computed from value. Takes value and computes something from it using a derivation of a function.

getInstance

public static Sigmoid getInstance()
Returns:
the instance of this class