Show
Ignore:
Timestamp:
14/08/09 16:29:27 (3 years ago)
Author:
westram
Message:
  • spellchecked all (phew)
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/PROBE_SET/ps_find_probes.cxx

    r5435 r6141  
    152152//  count of trues per species) higher than the lowest count 
    153153//  of trues for the species in __SOURCE_ID_SET 
    154 #define __TRESHOLD_PERCENTAGE_NEXT_SOURCE_ID_SET  5 
     154#define __THRESHOLD_PERCENTAGE_NEXT_SOURCE_ID_SET  5 
    155155//  target_id must be at least in 95% of total target_id_sets 
    156156//  to be in __TARGET_ID_SET 
    157 #define __TRESHOLD_PERCENTAGE_NEXT_TARGET_ID_SET 95 
     157#define __THRESHOLD_PERCENTAGE_NEXT_TARGET_ID_SET 95 
    158158 
    159159SpeciesID               __MIN_SETS_ID; 
     
    308308 
    309309    // 
    310     // dont look at path until ID is greater than lowest ID in the sets of IDs 
    311     // also dont use a node if its already used as candidate 
     310    // 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 
    312312    // 
    313313    if ((id >= __MIN_SETS_ID) && has_probes && !_candidate_parent->alreadyUsedNode(_ps_node)) { 
     
    407407    SpeciesID highest_count; 
    408408    SpeciesID lowest_count; 
    409     float     treshold; 
     409    float     threshold; 
    410410    SpeciesID count; 
    411411 
    412     // first pass -- get lowest count of trues and calc treshold 
     412    // first pass -- get lowest count of trues and calc threshold 
    413413    lowest_count  = __SPECIES_COUNT; 
    414414    highest_count = 0; 
     
    421421        if (count < lowest_count)  lowest_count  = count; 
    422422    } 
    423     treshold = ( ((__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]  treshold (%.3f)", lowest_count, highest_count, treshold ); 
    425  
    426     // second pass -- get IDs where count is below or equal treshold 
     423    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 
    427427    __SOURCE_ID_SET.clear(); 
    428428    for ( SpeciesID id = __MIN_ID; 
    429429          id <= __MAX_ID; 
    430430          ++id) { 
    431         if (__MAP->getCountFor( id ) <= treshold) __SOURCE_ID_SET.insert( id ); 
     431        if (__MAP->getCountFor( id ) <= threshold) __SOURCE_ID_SET.insert( id ); 
    432432    } 
    433433    PS_print_set_ranges( " __SOURCE_ID_SET", __SOURCE_ID_SET ); 
     
    457457    //PS_print_map_ranges( "PS_calc_next_speciesid_sets() : count_falses_per_id", count_falses_per_id, false ); 
    458458 
    459     // second -- get highest count of falses and calc treshold 
     459    // second -- get highest count of falses and calc threshold 
    460460    lowest_count  = __SPECIES_COUNT; 
    461461    highest_count = 0; 
     
    787787//     //PS_print_map_ranges( "PS_calc_next_speciesid_sets_for_candidate() : count_falses_per_id", count_falses_per_id, false ); 
    788788 
    789 //     // second -- get highest count of falses and calc treshold 
     789//     // second -- get highest count of falses and calc threshold 
    790790//     lowest_count  = __SPECIES_COUNT; 
    791791//     highest_count = 0; 
     
    907907 
    908908    // 
    909     // dont look at path until ID is greater than lowest ID in the sets of IDs 
    910     // also dont use a node if its already used as candidate 
     909    // 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 
    911911    // 
    912912    if ((id >= __MIN_SETS_ID) && has_probes) { 
     
    931931                                   __CANDIDATES_FINISHED ); fflush( stdout ); 
    932932 
    933             // next leaf-candidate if __PATH doesnt fulfill matching criteria 
     933            // next leaf-candidate if __PATH doesn't fulfill matching criteria 
    934934            unsigned long matches = candidate->matchPathOnOneFalseIDs( __PATH ); 
    935935            if (matches < candidate->one_false_IDs_matches) continue;