[
https://issues.apache.org/jira/browse/MATH-1267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14731636#comment-14731636
]
Gilles commented on MATH-1267:
------------------------------
bq. It might be better to return a Coordinate instance
Where is "Coordinate"?
bq. is it possible for the {{Network}} to get constructed without unique
identifiers?
It should not be possible. This is in the same spirit as (when we check for a
condition that should never happen) when we throw an exception from the default
clause of a switch statement. I agree that it is far fetched. ;) But it does
not do too much harm (performance-wise).
> 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)