Commits

Qian Zhu committed 0d619cc

Fixed bug when trying to quantize undefined values (NaN)

  • Participants
  • Parent commits fd1e64d

Comments (0)

Files changed (1)

File src/database.cpp

 						size_t s = veciGenes[j];
 						if(s == -1) continue;
 						if(s == t) continue;
+						if(CMeta::IsNaN(d_array[s])) continue;
 						vecData[iInOffset].Set(i,j,Dat.Quantize(d_array[s])+1);
 					}
 					free(d_array);