Package ec.spatial
Class Spatial1DSubpopulation
java.lang.Object
ec.Subpopulation
ec.spatial.Spatial1DSubpopulation
- All Implemented Interfaces:
Setup,Space,Serializable,Cloneable
A Spatial1DSubpopulation is an EC subpopulation that is additionally embedded into
a one-dimmensional space.
In a spatially-embedded EA, the subpopulations of individuals are assumed to be
spatially distributed in some sort of space, be it one-dimmensional, two-
dimmensional, or whatever else. The space may or may not be toroidal (although
it usually is). Each location in the space has a set of neighboring locations.
Thus, each individual has an index in the subpopulation, and also a location in
the space.
This public interface provides a method to obtain the indexes of the neighbors of a location.
This Subpopulation does not include toroidalness in writing out to streams.
Parameters
| toroidal true (default) or false |
(Is this space toroidal?) |