Class SigmoidUnit

    • Constructor Detail

      • SigmoidUnit

        public SigmoidUnit()
    • Method Detail

      • outputValue

        public double outputValue​(NeuralNode node)
        This function calculates what the output value should be.
        Specified by:
        outputValue in interface NeuralMethod
        Parameters:
        node - The node to calculate the value for.
        Returns:
        The value.
      • errorValue

        public double errorValue​(NeuralNode node)
        This function calculates what the error value should be.
        Specified by:
        errorValue in interface NeuralMethod
        Parameters:
        node - The node to calculate the error for.
        Returns:
        The error.
      • updateWeights

        public void updateWeights​(NeuralNode node,
                                  double learn,
                                  double momentum)
        This function will calculate what the change in weights should be and also update them.
        Specified by:
        updateWeights in interface NeuralMethod
        Parameters:
        node - The node to update the weights for.
        learn - The learning rate to use.
        momentum - The momentum to use.