com.anji.nn
Class EvSailSigmoidActivationFunction

java.lang.Object
  extended bycom.anji.nn.EvSailSigmoidActivationFunction
All Implemented Interfaces:
ActivationFunction

public class EvSailSigmoidActivationFunction
extends java.lang.Object
implements ActivationFunction

Modified classic sigmoid. Submitted to NEAT group by zenguyuno@yahoo.com from EvSail ANN package.

Author:
Philip Tucker

Field Summary
static java.lang.String NAME
          identifying string
 
Method Summary
 double apply(double input)
          Approximation of classic sigmoid.
 long cost()
           
 double getMaxValue()
           
 double getMinValue()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
identifying string

See Also:
Constant Field Values
Method Detail

toString

public java.lang.String toString()
See Also:
Object.toString()

apply

public double apply(double input)
Approximation of classic sigmoid.

Specified by:
apply in interface ActivationFunction
Parameters:
input -
Returns:
double result of applying activation function to input
See Also:
ActivationFunction.apply(double)

getMaxValue

public double getMaxValue()
Specified by:
getMaxValue in interface ActivationFunction
Returns:
ceiling value for this function
See Also:
ActivationFunction.getMaxValue()

getMinValue

public double getMinValue()
Specified by:
getMinValue in interface ActivationFunction
Returns:
floor value for this function
See Also:
ActivationFunction.getMinValue()

cost

public long cost()
Specified by:
cost in interface ActivationFunction
Returns:
number corresponding to cost of activation in resources
See Also:
ActivationFunction.cost()