Hello to all.
   
  I have some problem to understand diff_prob.cc program in directed diffusion 
protocol.
  What it means the following instruction in the CalGradient function. 
   
      cur_out->gradient = pow(2, routing_table[dtype].num_active - 
                                          cur_out->rank) / 
                         ( pow(2, routing_table[dtype].num_active) - 1);
   
  void DiffusionProb::CalGradient(unsigned int dtype)
  {
    Out_List *cur_out;
    
    for (cur_out = routing_table[dtype].active; cur_out != NULL;
         cur_out = OUT_NEXT(cur_out) ) {
      cur_out->gradient = pow(2, routing_table[dtype].num_active - 
                                          cur_out->rank) / 
                         ( pow(2, routing_table[dtype].num_active) - 1);
    }
  } 
   
  Thunks for all.

                
---------------------------------
 Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son 
interface révolutionnaire.

Reply via email to