activationFunction
Class HardLimitActivationFunction

java.lang.Object
  extended by activationFunction.HardLimitActivationFunction
All Implemented Interfaces:
ActivationFunctionModel

public class HardLimitActivationFunction
extends java.lang.Object
implements ActivationFunctionModel

Hard Limit Activation Funciton return 1 if input value is greater then threshold and 0 otherwise. It allows a neuron to make a decision or classification.


Constructor Summary
HardLimitActivationFunction(double p)
          Creates a new instance of HardLimitActivationFunction with specified parameters p
 
Method Summary
 double[] getParamateres()
          Return array contains parameters list
 double getValue(double inputValue)
          Return 1 if input value is greater then p and 0 otherwise
 void setParameteres(double[] paramateresList)
          Set parameters for hard limit activation funciton
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HardLimitActivationFunction

public HardLimitActivationFunction(double p)
Creates a new instance of HardLimitActivationFunction with specified parameters p

Parameters:
p - threshold of hard limit
Method Detail

setParameteres

public void setParameteres(double[] paramateresList)
Set parameters for hard limit activation funciton

Specified by:
setParameteres in interface ActivationFunctionModel
Parameters:
paramateresList - Array of parameters

getParamateres

public double[] getParamateres()
Return array contains parameters list

Specified by:
getParamateres in interface ActivationFunctionModel
Returns:
Array of parameters

getValue

public double getValue(double inputValue)
Return 1 if input value is greater then p and 0 otherwise

Specified by:
getValue in interface ActivationFunctionModel
Parameters:
inputValue - input Value
Returns:
value of the function