Changeset 7725 for trunk/MagicSoft/Mars/mranforest
- Timestamp:
- 05/22/06 14:42:06 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mranforest/MRanTree.cc
r7710 r7725 207 207 MArrayF wr(tclasspop); // right node//nclass 208 208 209 Double_t critvar=- 1.0e20;209 Double_t critvar=-FLT_MAX; 210 210 for(Int_t nsp=ndstart;nsp<=ndend-1;nsp++) 211 211 { … … 248 248 249 249 // If crit starts to become pretty large do WHAT??? 250 if (TMath::Min(rrd,rld)<=1.0e-5) // FIXME: CHECKIT FOR WEIGHTS! 250 //if (TMath::Min(rrd,rld)<=1.0e-5) // FIXME: CHECKIT FOR WEIGHTS! 251 // continue; 252 253 const Double_t crit=(rln/rld)+(rrn/rrd); 254 if (TMath::Finite(crit)) 251 255 continue; 252 253 const Double_t crit=(rln/rld)+(rrn/rrd);254 256 255 257 // Search for the highest value of crit … … 320 322 // start main loop through variables to find best split, 321 323 322 Double_t critmin= 1.0e40;324 Double_t critmin=FLT_MAX; 323 325 324 326 // random split selection, number of trials = fNumTry … … 399 401 continue; 400 402 401 if (TMath::Min(rrd,rld)<=1.0e-5) 403 //if (TMath::Min(rrd,rld)<=1.0e-5) 404 // continue; 405 406 const Double_t crit=(rln/rld)+(rrn/rrd); 407 if (TMath::Finite(crit)) 402 408 continue; 403 404 const Double_t crit=(rln/rld)+(rrn/rrd);405 409 406 410 if (crit>=critvar) continue;
Note:
See TracChangeset
for help on using the changeset viewer.