Documentation of 'org.neuroph.core.Connection' Java class
Connection
org.neuroph.core

Class Connection

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    DelayedConnection


    public class Connection
    extends java.lang.Object
    implements java.io.Serializable
    Weighted connection to another neuron.
    See Also:
    Weight, Neuron, Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      Connection(Neuron fromNeuron, Neuron toNeuron)
      Creates a new connection between specified neurons with random weight
      Connection(Neuron fromNeuron, Neuron toNeuron, double weightVal)
      Creates a new connection to specified neuron with specified weight value
      Connection(Neuron fromNeuron, Neuron toNeuron, Weight weight)
      Creates a new connection to specified neuron with specified weight object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.Object clone() 
      boolean equals(java.lang.Object obj) 
      Neuron getFromNeuron()
      Gets from neuron for this connection
      double getInput()
      Returns input received through this connection - the activation that comes from the output of the cell on the other end of connection Todo: make this final and solve delayed neuron connection in a different way
      Neuron getToNeuron()
      Gets to neuron for this connection
      Weight getWeight()
      Returns weight for this connection
      double getWeightedInput()
      Returns the weighted input received through this connection
      int hashCode() 
      void setWeight(Weight weight)
      Set the weight of the connection.
      java.lang.String toString() 
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Connection

        public Connection(Neuron fromNeuron,
                          Neuron toNeuron)
        Creates a new connection between specified neurons with random weight
        Parameters:
        fromNeuron - neuron to connect from
        toNeuron - neuron to connect to
      • Connection

        public Connection(Neuron fromNeuron,
                          Neuron toNeuron,
                          Weight weight)
        Creates a new connection to specified neuron with specified weight object
        Parameters:
        fromNeuron - neuron to connect from
        toNeuron - neuron to connect to
        weight - weight for this connection
      • Connection

        public Connection(Neuron fromNeuron,
                          Neuron toNeuron,
                          double weightVal)
        Creates a new connection to specified neuron with specified weight value
        Parameters:
        fromNeuron - neuron to connect from
        toNeuron - neuron to connect to
        weightVal - weight value for this connection
    • Method Detail

      • getWeight

        public final Weight getWeight()
        Returns weight for this connection
        Returns:
        weight for this connection
      • setWeight

        public final void setWeight(Weight weight)
        Set the weight of the connection.
        Parameters:
        weight - The new weight of the connection.
      • getInput

        public double getInput()
        Returns input received through this connection - the activation that comes from the output of the cell on the other end of connection Todo: make this final and solve delayed neuron connection in a different way
        Returns:
        input received through this connection
      • getWeightedInput

        public final double getWeightedInput()
        Returns the weighted input received through this connection
        Returns:
        weighted input received through this connection
      • getFromNeuron

        public final Neuron getFromNeuron()
        Gets from neuron for this connection
        Returns:
        from neuron for this connection
      • getToNeuron

        public final Neuron getToNeuron()
        Gets to neuron for this connection
        Returns:
        neuron to set as to neuron
      • clone

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Overrides:
        clone in class java.lang.Object
        Throws:
        java.lang.CloneNotSupportedException
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.