org.jscience.computing.ai.neurocomputing
Class Activation.Stepped

java.lang.Object
  extended by org.jscience.computing.ai.neurocomputing.Activation.Stepped
All Implemented Interfaces:
Activation
Enclosing interface:
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/interfaces inherited from interface org.jscience.computing.ai.neurocomputing.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.