Documentation of 'Catalano.Neuro.ActivationFunction.LinearFunction' Java class
LinearFunction
Catalano.Neuro.ActivationFunction

Class LinearFunction

    • Constructor Summary

      Constructors 
      Constructor and Description
      LinearFunction()
      Initializes a new instance of the LinearFunction class.
      LinearFunction(double a)
      Initializes a new instance of the LinearFunction class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      double Derivative(double x)
      Calculates function derivative.
      double Derivative2(double x)
      Calculates function derivative.
      double Function(double x)
      Calculates function value.
      double getConstant() 
      void setConstant(double c) 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LinearFunction

        public LinearFunction()
        Initializes a new instance of the LinearFunction class.
      • LinearFunction

        public LinearFunction(double a)
        Initializes a new instance of the LinearFunction class.
        Parameters:
        a - Constant.
    • Method Detail

      • getConstant

        public double getConstant()
      • setConstant

        public void setConstant(double c)
      • Function

        public double Function(double x)
        Description copied from interface: IActivationFunction
        Calculates function value.
        Specified by:
        Function in interface IActivationFunction
        Parameters:
        x - Function input value.
        Returns:
        Function output value, f(x).
      • Derivative

        public double Derivative(double x)
        Description copied from interface: IActivationFunction
        Calculates function derivative.
        Specified by:
        Derivative in interface IActivationFunction
        Parameters:
        x - Function input value.
        Returns:
        Function derivative, f'(x).
      • Derivative2

        public double Derivative2(double x)
        Description copied from interface: IActivationFunction
        Calculates function derivative.
        Specified by:
        Derivative2 in interface IActivationFunction
        Parameters:
        x - Function output value - the value, which was obtained with the help of Function method.
        Returns:
        Function derivative, f'(x).

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.