com.penguinwerks.jodene
Interface ActivationFunction

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
SigmoidActivationFunction, TanhActivationFunction

public interface ActivationFunction
extends java.io.Serializable

This is a generic ativation function. Subclasses will return the activation given an input or the derivative of the activation given the input.

Author:
Paul Hoehne

Method Summary
 double activation(double val)
          The activation level given the input.
 double derivative(double val)
          The derivative of the activation value.
 

Method Detail

activation

public double activation(double val)
The activation level given the input.

Parameters:
val - The raw value.
Returns:
The activation value after applying the function.

derivative

public double derivative(double val)
The derivative of the activation value.

Parameters:
val - The raw value.
Returns:
The derivative of the activation function for that value.