cc.glsn.v15.neuralnet
Class LinearFunction
java.lang.Object
cc.glsn.v15.neuralnet.LinearFunction
- All Implemented Interfaces:
- NetFunction, Serializable
public class LinearFunction
- extends Object
- implements NetFunction
Linear activation function. Proably should not be used.
g(x) = 2x - 1
g'(x) = 2
- See Also:
- Serialized Form
|
Method Summary |
double |
functionG(double x)
get output for input of x |
double |
functionGprime(double x)
get derivitive of function for input x
used for back propogation learning |
LinearFunction
public LinearFunction()
functionG
public double functionG(double x)
- Description copied from interface:
NetFunction
- get output for input of x
- Specified by:
functionG in interface NetFunction
- Parameters:
x - - input
- Returns:
- value - g'(x)
functionGprime
public double functionGprime(double x)
- Description copied from interface:
NetFunction
- get derivitive of function for input x
used for back propogation learning
- Specified by:
functionGprime in interface NetFunction
- Parameters:
x - - input
- Returns:
- derivitive - g'(x)