je voudrais etre sure de ce que ce script fait... Quel partie de ma matrice L2.getSubMatrix(1,2,4).prend ce script???? sachant que les dimensions de L2 = MATRIX_CATCH_WEIGHT_PER_STRATEGY_MET_PER_ZONE_POP sont /** * Matrix with five dimensions * Dimension 1 : TimeStep * Dimension 2 : Strategy * Dimension 3 : Metier * Dimension 4 : Group * Dimension 5 : Zone */ bout de script dont c'est issu: MatrixND L2 = result.getMatrix(param_Population, ResultName.MATRIX_CATCH_WEIGHT_PER_STRATEGY_MET_PER_ZONE_POP); // log.info("dim de L2" + " " + Arrays.toString(L2.getDim())); /////*** If some strategies, metiers or areas must not be included in the cumulated catches see below else put "//" at the beginning of line 297 and replace "L2" by "L" at line 289 /////*** the strategies or so to exclude must be at the begining or end of the list you enter in the parameters interface /////*** fill the line MatrixND L = L2.getSubMatrix(a,b,c).copy(); as follow : /////*** a = 1 if you want to exclude strategies, 2 if metiers and 4 if areas /////*** b = indice of the first object considered /////*** c = number of object to keep after b, b included MatrixND L = L2.getSubMatrix(1,2,4).copy(); Merci steph -- ...................................................................... Stephanie MAHEVAS (Stephanie.Mahevas@ifremer.fr) IFREMER/EMH (Ecologie et Modèles pour l'Halieutique) Tel: (33) 2 40 37 41 81 Fax: (33) 2 40 37 40 75 o \ o / _ o __| \ / |__ o _ \ o / o /|\ | /\ ___\o \o | o/ o/__ /\ | /|\ / \ / \ | \ /) | ( \ /o\ / ) | (\ / | / \ / \ ......................................................................
Le 13/09/2012 13:52, Stephanie MAHEVAS a écrit :
je voudrais etre sure de ce que ce script fait... Quel partie de ma matrice L2.getSubMatrix(1,2,4).prend ce script???? sachant que les dimensions de L2 = MATRIX_CATCH_WEIGHT_PER_STRATEGY_MET_PER_ZONE_POP sont /** * Matrix with five dimensions * Dimension 1 : TimeStep * Dimension 2 : Strategy * Dimension 3 : Metier * Dimension 4 : Group * Dimension 5 : Zone */ Je dirais que ca retourne la même matrice, avec les mêmes dimensions mais pour les stategies (dim 1), il y en a moins: 4 strategies (soit les indices 2, 3, 4, 5) de la semantique originale.
-- Éric Chatellier <chatellier@codelutin.com> Tel: 02.40.50.29.28 http://www.codelutin.com
participants (2)
-
Eric Chatellier -
Stephanie MAHEVAS