Ignore:
Timestamp:
Aug 8, 2005, 1:33:13 AM (17 years ago)
Author:
Jari Häkkinen
Message:

Replaced utility::random_singleton.* with random::random.*

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/svm/CrossValidation.cc

    r301 r377  
    44#include <c++_tools/gslapi/vector.h>
    55#include <c++_tools/svm/CrossValidation.h>
    6 #include <c++_tools/utility/random_singleton.h>
     6#include <c++_tools/random/random.h>
    77
    88#include <vector>
     
    2424    }
    2525
    26     utility::my_uniform_rng a;
     26    random::DiscreteUniform a;
    2727    random_shuffle(index_negative_.begin(), index_negative_.end(), a);
    2828    random_shuffle(index_positive_.begin(), index_positive_.end(), a);
     
    3131  std::vector<size_t> CrossValidation::next()
    3232  {
     33    random::DiscreteUniform a;
    3334    if (count_==k_){
    3435      count_=0;
    35       utility::my_uniform_rng a;
    3636      random_shuffle(index_negative_.begin(), index_negative_.end(), a);
    3737      random_shuffle(index_positive_.begin(), index_positive_.end(), a);
Note: See TracChangeset for help on using the changeset viewer.