SciLib.Neuro
Class sgn

java.lang.Object
  extended by SciLib.Neuro.sgn
All Implemented Interfaces:
Activation

public class sgn
extends java.lang.Object
implements Activation

This class defines a signum activation function.


Constructor Summary
sgn()
           
 
Method Summary
 double g(double x)
           
 double gDerivative(double x)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

sgn

public sgn()
Method Detail

g

public double g(double x)
Specified by:
g in interface Activation

gDerivative

public double gDerivative(double x)
Specified by:
gDerivative in interface Activation