It might be better to return a Coordinate instance, so that we can use `getRow` 
and `getColumn` methods.

Cheers,
- Ole


On 09/04/2015 09:27 AM, Gilles (JIRA) wrote:
      [ 
https://issues.apache.org/jira/browse/MATH-1267?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gilles updated MATH-1267:
-------------------------
     Attachment: LocationFinder.java

Here is the proposed class.

Objections?


Grid coordinate of "Neuron" that belongs to a "NeuronSquareMesh2D"
------------------------------------------------------------------

                 Key: MATH-1267
                 URL: https://issues.apache.org/jira/browse/MATH-1267
             Project: Commons Math
          Issue Type: Wish
            Reporter: Gilles
            Assignee: Gilles
            Priority: Minor
             Fix For: 4.0, 3.6

         Attachments: LocationFinder.java


When the network layout is a 2D grid, it useful to be able to retrieve the grid 
coordinate (row, column) of a a neuron.
I propose to define a new class "LocationFinder" (in package 
"o.a.c.m.ml.neuralnet.twod.util") that will provide the functionality through a 
"getLocation(Neuron n)" method.


--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


Reply via email to