org.generation5.nn
Class Activation.Stepped

java.lang.Object
  extended byorg.generation5.nn.Activation.Stepped
All Implemented Interfaces:
Activation
Enclosing class:
Activation

public static class Activation.Stepped
extends java.lang.Object
implements Activation

A stepped activation function. If n > 0, return 1.0 otherwise return 0.0.


Nested Class Summary
 
Nested classes inherited from class org.generation5.nn.Activation
Activation.None, Activation.Sigmoid, Activation.Stepped, Activation.Tanh
 
Constructor Summary
Activation.Stepped()
           
 
Method Summary
 double function(double in)
          Return 1.0 for any value greater than 0.0, otherwise 0.0.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Activation.Stepped

public Activation.Stepped()
Method Detail

function

public double function(double in)
Return 1.0 for any value greater than 0.0, otherwise 0.0.

Specified by:
function in interface Activation
Parameters:
in - the input weight.
Returns:
the stepped weight.

This documentation is part of the Generation5 JDK.