Ignore:
Timestamp:
Jan 23, 2008, 7:24:53 PM (14 years ago)
Author:
Peter
Message:

adding a wrapper around std::random_shuffle that uses the RNG class. Changed all calls to random_shuffle to use the added function. Acctually all calls already used the RNG class so essentially this change is only cosmetic, but by providing a function I think it is easier to avoid using multiple random generators.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/classifier/SVindex.cc

    r1000 r1004  
    120120  void SVindex::shuffle(void)
    121121  {
    122     random::DiscreteUniform a;
    123     random_shuffle(vec_.begin()+nof_sv_, vec_.end(), a);
     122    random::random_shuffle(vec_.begin()+nof_sv_, vec_.end());
    124123  }
    125124
Note: See TracChangeset for help on using the changeset viewer.