Commits

Aaron Wong committed 5c0395e

Dynamic bin number

  • Participants
  • Parent commits ac35a74

Comments (0)

Files changed (1)

tools/BNServer/BNServer.cpp

 	vecpMatRatios.resize(iDatasets);
 	for ( i = 0; i < GetDatabase().GetDatasets(); i++ ) {
 	    vecpMatCounts[i] = new CCountMatrix();
-	    vecpMatCounts[i]->Initialize( 7, 2 );
+	    vecpMatCounts[i]->Initialize( GetBins()[i], 2 );
 	    vecpMatCounts[i]->Clear();
 
 	    vecpMatProbs[i] = new CFullMatrix<float>();
-	    vecpMatProbs[i]->Initialize( 7, 2 );
+	    vecpMatProbs[i]->Initialize( GetBins()[i], 2 );
 	    vecpMatProbs[i]->Clear();
 
 	    vecpMatRatios[i] = new CFullMatrix<float>();
-	    vecpMatRatios[i]->Initialize( 1, 7 );
+	    vecpMatRatios[i]->Initialize( 1, GetBins()[i] );
 	    vecpMatRatios[i]->Clear();
 	}