jhpro.nnet.jknnl
Class SymetricHardLimitActivationFunction
- java.lang.Object
-
- jhpro.nnet.jknnl.SymetricHardLimitActivationFunction
-
- All Implemented Interfaces:
- ActivationFunctionModel
public class SymetricHardLimitActivationFunction extends java.lang.Object implements ActivationFunctionModel
Symmetric Hard Limit function return 1 if input value is greater then threshold and -1 otherwise.
-
-
Constructor Summary
Constructors Constructor and Description SymetricHardLimitActivationFunction(double p)Creates a new instance of SymetricHardLimitActivationFunction with specified parameter 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 -1 otherwise.voidsetParameteres(double[] paramateresList)Set parameters of Hard limit activation function
-
-
-
Constructor Detail
-
SymetricHardLimitActivationFunction
public SymetricHardLimitActivationFunction(double p)
Creates a new instance of SymetricHardLimitActivationFunction with specified parameter p- Parameters:
p- threshold
-
-
Method Detail
-
setParameteres
public void setParameteres(double[] paramateresList)
Set parameters of 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 -1 otherwise.- Specified by:
getValuein interfaceActivationFunctionModel- Parameters:
inputValue- input Value- Returns:
- value of the function
-
-
DMelt 3.0 © DataMelt by jWork.ORG