Messages from list : cormas@cirad.fr

Choose a topic among the following archives :

initialization of girds

New Message Reply Date view Thread view Subject view Author view

Subject: initialization of girds
From: Joelle Noailly (noailly@tinbergen.nl)
Date: Sat Dec 06 2003 - 13:19:31 CET

Hi,

I am trying to program a systematic initialization method, such that all
possible initial grids (given the total number of cells and the number of
possible states) are generated one after the other. For instance, on a
grid of 10 cells in which each cell can have initially 3 possible states,
there are 10^3 different possible initial grids. The initialization method
should then look like:
-initialize 10 cells with state 1
-initialize 9 cells with state 1 and 1 cell with state 2 (here all the 10
different spatial grids corresponding to this combination are generated)
- 9 cells with state 1, 1 cell with state 3
etc.
I was wondering if such a method already exists in Cormas. Otherwise could
you possibly give me some tips on how I could implement it?

Many thanks for your help,
Cheers,
Joelle Noailly

New Message Reply Date view Thread view Subject view Author view
 

Back to home