Changeset 6141 for trunk/PROBE_SET/ps_find_probes.cxx
- Timestamp:
- 14/08/09 16:29:27 (3 years ago)
- Files:
-
- 1 modified
-
trunk/PROBE_SET/ps_find_probes.cxx (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/PROBE_SET/ps_find_probes.cxx
r5435 r6141 152 152 // count of trues per species) higher than the lowest count 153 153 // of trues for the species in __SOURCE_ID_SET 154 #define __T RESHOLD_PERCENTAGE_NEXT_SOURCE_ID_SET 5154 #define __THRESHOLD_PERCENTAGE_NEXT_SOURCE_ID_SET 5 155 155 // target_id must be at least in 95% of total target_id_sets 156 156 // to be in __TARGET_ID_SET 157 #define __T RESHOLD_PERCENTAGE_NEXT_TARGET_ID_SET 95157 #define __THRESHOLD_PERCENTAGE_NEXT_TARGET_ID_SET 95 158 158 159 159 SpeciesID __MIN_SETS_ID; … … 308 308 309 309 // 310 // don t look at path until ID is greater than lowest ID in the sets of IDs311 // also don t use a node if its already used as candidate310 // don't look at path until ID is greater than lowest ID in the sets of IDs 311 // also don't use a node if its already used as candidate 312 312 // 313 313 if ((id >= __MIN_SETS_ID) && has_probes && !_candidate_parent->alreadyUsedNode(_ps_node)) { … … 407 407 SpeciesID highest_count; 408 408 SpeciesID lowest_count; 409 float t reshold;409 float threshold; 410 410 SpeciesID count; 411 411 412 // first pass -- get lowest count of trues and calc t reshold412 // first pass -- get lowest count of trues and calc threshold 413 413 lowest_count = __SPECIES_COUNT; 414 414 highest_count = 0; … … 421 421 if (count < lowest_count) lowest_count = count; 422 422 } 423 t reshold = ( ((__SPECIES_COUNT-lowest_count) * __TRESHOLD_PERCENTAGE_NEXT_SOURCE_ID_SET) / 100.0 ) + lowest_count;424 printf( "PS_calc_next_speciesid_sets() : SOURCE count 1's [%i..%i] t reshold (%.3f)", lowest_count, highest_count, treshold );425 426 // second pass -- get IDs where count is below or equal t reshold423 threshold = ( ((__SPECIES_COUNT-lowest_count) * __THRESHOLD_PERCENTAGE_NEXT_SOURCE_ID_SET) / 100.0 ) + lowest_count; 424 printf( "PS_calc_next_speciesid_sets() : SOURCE count 1's [%i..%i] threshold (%.3f)", lowest_count, highest_count, threshold ); 425 426 // second pass -- get IDs where count is below or equal threshold 427 427 __SOURCE_ID_SET.clear(); 428 428 for ( SpeciesID id = __MIN_ID; 429 429 id <= __MAX_ID; 430 430 ++id) { 431 if (__MAP->getCountFor( id ) <= t reshold) __SOURCE_ID_SET.insert( id );431 if (__MAP->getCountFor( id ) <= threshold) __SOURCE_ID_SET.insert( id ); 432 432 } 433 433 PS_print_set_ranges( " __SOURCE_ID_SET", __SOURCE_ID_SET ); … … 457 457 //PS_print_map_ranges( "PS_calc_next_speciesid_sets() : count_falses_per_id", count_falses_per_id, false ); 458 458 459 // second -- get highest count of falses and calc t reshold459 // second -- get highest count of falses and calc threshold 460 460 lowest_count = __SPECIES_COUNT; 461 461 highest_count = 0; … … 787 787 // //PS_print_map_ranges( "PS_calc_next_speciesid_sets_for_candidate() : count_falses_per_id", count_falses_per_id, false ); 788 788 789 // // second -- get highest count of falses and calc t reshold789 // // second -- get highest count of falses and calc threshold 790 790 // lowest_count = __SPECIES_COUNT; 791 791 // highest_count = 0; … … 907 907 908 908 // 909 // don t look at path until ID is greater than lowest ID in the sets of IDs910 // also don t use a node if its already used as candidate909 // don't look at path until ID is greater than lowest ID in the sets of IDs 910 // also don't use a node if its already used as candidate 911 911 // 912 912 if ((id >= __MIN_SETS_ID) && has_probes) { … … 931 931 __CANDIDATES_FINISHED ); fflush( stdout ); 932 932 933 // next leaf-candidate if __PATH doesn t fulfill matching criteria933 // next leaf-candidate if __PATH doesn't fulfill matching criteria 934 934 unsigned long matches = candidate->matchPathOnOneFalseIDs( __PATH ); 935 935 if (matches < candidate->one_false_IDs_matches) continue;
