jhpro.nnet.jknnl
Class HardLimitActivationFunction
- java.lang.Object
-
- jhpro.nnet.jknnl.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
Constructors Constructor and Description HardLimitActivationFunction(double p)Creates a new instance of HardLimitActivationFunction with specified parameters p
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description double[]getParamateres()Return array contains parameters listdoublegetValue(double inputValue)Return 1 if input value is greater then p and 0 otherwisevoidsetParameteres(double[] paramateresList)Set parameters for hard limit activation function
-
-
-
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 function- Specified by:
setParameteresin interfaceActivationFunctionModel- Parameters:
paramateresList- Array of parameters
-
getParamateres
public double[] getParamateres()
Return array contains parameters list- Specified by:
getParamateresin interfaceActivationFunctionModel- Returns:
- Array of parameters
-
getValue
public double getValue(double inputValue)
Return 1 if input value is greater then p and 0 otherwise- Specified by:
getValuein interfaceActivationFunctionModel- Parameters:
inputValue- input Value- Returns:
- value of the function
-
-
DMelt 3.0 © DataMelt by jWork.ORG