cc.glsn.v15.neuralnet
Class CubeFunction
java.lang.Object
cc.glsn.v15.neuralnet.CubeFunction
- All Implemented Interfaces:
- NetFunction, Serializable
public class CubeFunction
- extends Object
- implements NetFunction
Cube activation function
Probably should not be used. I just threw it in so that I would
have a function my calculus deficient clown ass might be able to
take the derivitive of.
g(x) = x^3
g'(x) = 3x^2
- See Also:
- Serialized Form
|
Method Summary |
double |
functionG(double x)
returns |
double |
functionGprime(double x)
get derivitive of function for input x
used for back propogation learning |
CubeFunction
public CubeFunction()
functionG
public double functionG(double x)
- returns
- 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)