com.anji.nn
Class ClampedLinearActivationFunction

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

public class ClampedLinearActivationFunction
extends java.lang.Object
implements ActivationFunction

Author:
Philip Tucker

Field Summary
static java.lang.String NAME
          unique ID string
 
Constructor Summary
ClampedLinearActivationFunction()
           
 
Method Summary
 double apply(double input)
          Apply activation function to input.
 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
unique ID string

Constructor Detail

ClampedLinearActivationFunction

public ClampedLinearActivationFunction()
Method Detail

toString

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

apply

public double apply(double input)
Description copied from interface: ActivationFunction
Apply activation function to input.

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