cc.glsn.v15.neuralnet
Class LinearFunction

java.lang.Object
  extended by 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

    Constructor Summary
    LinearFunction()
               
     
    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
     
    Methods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Constructor Detail

    LinearFunction

    public LinearFunction()
    Method Detail

    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)