Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-1263

Accessor in "NeuronSquareMesh2D"

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.5
    • 4.0, 3.6
    • None

    Description

      In class NeuronSquareMesh2D (package o.a.c.m.ml.neuralnet):
      A new method to select a neighbour in a certain "direction" (to be defined
      with an "enum") would be useful (for some visualizations that need the exact location of each neighbour):

      public class NeuronSquareMesh2D {
         // ...
      
         public enum HorizontalDirection {
             RIGHT, CENTER, LEFT,
         }
         public enum VerticalDirection {
             UP, CENTER, DOWN,
         }
      
         public Neuron getNeuronNeighbour(int i,
                                          int j,
                                          HorizontalDirection iDir,
                                          VerticalDirection jDir) {
             // ...
         }
      }
      

      Attachments

        1. MATH-1263.patch
          15 kB
          Gilles Sadowski

        Activity

          People

            erans Gilles Sadowski
            erans Gilles Sadowski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: