public class LinearFunction extends java.lang.Object implements IActivationFunction
| Constructor and Description |
|---|
LinearFunction()
Initializes a new instance of the LinearFunction class.
|
LinearFunction(double a)
Initializes a new instance of the LinearFunction class.
|
| Modifier and Type | Method and Description |
|---|---|
double |
Compute(double x)
Compute the activation function.
|
double |
getConstant() |
void |
setConstant(double c) |
public LinearFunction()
public LinearFunction(double a)
a - Constant.public double getConstant()
public void setConstant(double c)
public double Compute(double x)
IActivationFunctionCompute in interface IActivationFunctionx - Value.