Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Implementation of new functions.
[mapping.git] / src / and / Mapping / Grid.java
index 877ac33..3501a2d 100644 (file)
@@ -325,8 +325,10 @@ public class Grid implements Serializable
        {
                if( _g != null )
                {
+                       /** Change in the cluster **/
                        getClusterOfNode( _g ).setGNodeStatus( _g, _status ) ;
                        
+                       /** Change in local list **/
                        for( int i = 0 ; i < gnodesList.size() ; i++ )
                        {
                                if( _g.getId() == gnodesList.get( i ).getId() )
@@ -399,10 +401,8 @@ public class Grid implements Serializable
                temp = temp / gnodesList.size() ;
                std = Math.sqrt( temp ) ;
                
-               /** Computation of the relative standard deviation
-                * plus modifications 
-                */
-               hd = 100 * std / average / 10 ;
+               /** Computation of the relative standard deviation **/
+               hd = 100 * std / average ;
                
                
                return hd ;