Documentation of 'org.encog.neural.som.training.basic.neighborhood.NeighborhoodSingle' Java class
NeighborhoodSingle
org.encog.neural.som.training.basic.neighborhood

Class NeighborhoodSingle

  • All Implemented Interfaces:
    NeighborhoodFunction


    public class NeighborhoodSingle
    extends java.lang.Object
    implements NeighborhoodFunction
    A very simple neighborhood function that will return 1.0 (full effect) for the winning neuron, and 0.0 (no change) for everything else.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      double function(int currentNeuron, int bestNeuron)
      Determine how much the current neuron should be affected by training based on its proximity to the winning neuron.
      double getRadius()
      The radius for this neighborhood function is always 1.
      void setRadius(double radius)
      Set the radius.
      • Methods inherited from class java.lang.Object

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

      • NeighborhoodSingle

        public NeighborhoodSingle()
    • Method Detail

      • function

        public double function(int currentNeuron,
                               int bestNeuron)
        Determine how much the current neuron should be affected by training based on its proximity to the winning neuron.
        Specified by:
        function in interface NeighborhoodFunction
        Parameters:
        currentNeuron - THe current neuron being evaluated.
        bestNeuron - The winning neuron.
        Returns:
        The ratio for this neuron's adjustment.
      • getRadius

        public double getRadius()
        The radius for this neighborhood function is always 1.
        Specified by:
        getRadius in interface NeighborhoodFunction
        Returns:
        The radius.
      • setRadius

        public void setRadius(double radius)
        Set the radius. This type does not use a radius, so this has no effect.
        Specified by:
        setRadius in interface NeighborhoodFunction
        Parameters:
        radius - The radius.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.