Changeset 6492 for trunk/MagicSoft
- Timestamp:
- 02/15/05 17:27:17 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mranforest/MRFEnergyEst.cc
r6479 r6492 96 96 const Int_t nrows = (fMatrixTrain->GetM()).GetNrows(); 97 97 98 cout<<"ncols="<<ncols<<" nrows="<<nrows<<endl<<flush; 99 98 100 if(ncols<=0 || nrows <=0) 99 101 { … … 138 140 139 141 // training of RF for each energy bin 142 Int_t numbins=0; 140 143 for(Int_t ie=0;ie<nbins;ie++) 141 144 { … … 159 162 } 160 163 } 164 if(irow1*irow0==0)continue; 165 166 *fLog << inf << dbginf << "Training RF for energy bin "<<ie<< endl; 161 167 162 168 // last column must be removed (true energy col.) … … 209 215 MRanForest *forest=(MRanForest*)plist.FindObject("MRanForest"); 210 216 forest->SetTitle(Form("%f",0.5*(fEnergyGrid[ie]+fEnergyGrid[ie+1]))); 211 forest->Write(Form("%d",ie)); 217 forest->Write(Form("%d",numbins)); 218 numbins++; 212 219 } 213 220
Note:
See TracChangeset
for help on using the changeset viewer.