com.anji.nn
Class InverseAbsActivationFunction

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

public class InverseAbsActivationFunction
extends java.lang.Object
implements ActivationFunction

Inverse absolute value.

Author:
Philip Tucker

Field Summary
static java.lang.String NAME
          identifying string
 
Method Summary
 double apply(double input)
          Inverse absolute value.
 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)
Inverse absolute value.

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()