Documentation of 'org.neuroph.nnet.comp.neuron.CompetitiveNeuron' Java class
CompetitiveNeuron
org.neuroph.nnet.comp.neuron

Class CompetitiveNeuron

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable


    public class CompetitiveNeuron
    extends DelayedNeuron
    Provides neuron behaviour specific for competitive neurons which are used in competitive layers, and networks with competitive learning.
    See Also:
    Serialized Form
    • Constructor Detail

      • CompetitiveNeuron

        public CompetitiveNeuron(InputFunction inputFunction,
                                 TransferFunction transferFunction)
        Creates an instance of CompetitiveNeuron with specified input and transfer functions
        Parameters:
        inputFunction - neuron input function
        transferFunction - neuron ransfer function
    • Method Detail

      • calculate

        public void calculate()
        Description copied from class: Neuron
        Calculates neuron's output
        Overrides:
        calculate in class DelayedNeuron
      • addInputConnection

        public void addInputConnection(Connection connection)
        Adds input connection for this competitive neuron
        Overrides:
        addInputConnection in class Neuron
        Parameters:
        connection - input connection
      • getConnectionsFromOtherLayers

        public java.util.List<Connection> getConnectionsFromOtherLayers()
        Returns collection of connections from other layers
        Returns:
        collection of connections from other layers
      • reset

        public void reset()
        Resets the input, output and mode for this neuron
        Overrides:
        reset in class Neuron
      • isCompeting

        public boolean isCompeting()
        Retruns true if this neuron is in competing mode, false otherwise
        Returns:
        true if this neuron is in competing mode, false otherwise
      • setIsCompeting

        public void setIsCompeting(boolean isCompeting)
        Sets the flag to indicate that this neuron is in competing mode
        Parameters:
        isCompeting - value for the isCompeting flag

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.