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/Target.cc

    r1000 r1004  
    167167  void Target::random_shuffle(void)
    168168  {
    169     random::DiscreteUniform d;
    170     std::random_shuffle(classes_.begin(), classes_.end(),d);
     169    random::random_shuffle(classes_.begin(), classes_.end());
    171170  }
    172171
Note: See TracChangeset for help on using the changeset viewer.