Ignore:
Timestamp:
01/22/07 15:31:08 (17 years ago)
Author:
bittner
Message:

mutation strategy updated, importance depending on rsuccess

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/Mutation.h

    r2001 r2011  
    5757         
    5858        float GetSamplingFactor() const { return mMutations/mImportance; } 
     59         
     60        friend bool operator<(const RayEntry &a, const RayEntry &b) { 
     61          return a.GetSamplingFactor() > b.GetSamplingFactor(); 
     62        } 
     63         
    5964        RayEntry() {} 
    6065        RayEntry(VssRay *r):mRay(r), 
     
    118123                                                 ); 
    119124 
    120   RayEntry &GetEntry(const int index) { 
    121         return mRays[(mBufferStart+index)%mRays.size()]; 
    122   } 
     125  RayEntry &GetEntry(const int index); 
     126 
    123127   
    124128  vector<RayEntry> mRays; 
Note: See TracChangeset for help on using the changeset viewer.