|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectactivationFunction.LinearActivationFunction
public class LinearActivationFunction
Linear Activation Function return value calculated by function describe as y = a * x + b. where:
a, b - parameters of linear function
x - input value
Constructor Summary | |
---|---|
LinearActivationFunction()
Creates a new instance of LinearActivationFunction with default parameters set a=1, b=0 |
Method Summary | |
---|---|
double[] |
getParamateres()
Return parameters of the Linear Activation function. |
double |
getValue(double inputValue)
Return value y of Linear Activation function for specified input value x. |
void |
setParameteres(double[] paramateresList)
Set the parameters of function. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LinearActivationFunction()
Method Detail |
---|
public void setParameteres(double[] paramateresList)
setParameteres
in interface ActivationFunctionModel
paramateresList
- array of parameterspublic double[] getParamateres()
getParamateres
in interface ActivationFunctionModel
public double getValue(double inputValue)
getValue
in interface ActivationFunctionModel
inputValue
- input value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |