Commits

Mathieu Lajoie committed 78db97c

(fixed a bug that may affect the "rank" normalisation)

Comments (0)

Files changed (1)

 void get_ranks_ties(const Double1D& val_vec, Double1D& r_vec){
   int vec_size = val_vec.size();
   r_vec.resize(vec_size);
-  static RankedDouble1D rank_vec(vec_size);
- 
+  static RankedDouble1D rank_vec(0);
+  rank_vec.clear();
+  rank_vec.resize(vec_size);
+
   for(int i=0;i<vec_size;i++){
     rank_vec[i].index=i;
     rank_vec[i].value=val_vec[i];