void SetUp() {
    shared_ptr<table::column_table> nn_table(new table::column_table);
    shared_ptr<nearest_neighbor_base> nn_engine(new NearestNeighborMethod(
        typename NearestNeighborMethod::config(), nn_table, ID));
    light_lof_.reset(new light_lof(light_lof::config(), ID, nn_engine));

    mtr_ = jubatus::util::math::random::mtrand(SEED);
  }
Esempio n. 2
0
  void SetUp() {
    shared_ptr<storage::column_table> nn_table(new storage::column_table);
    light_lof::config config;
    config.nearest_neighbor_num = K;
    config.ignore_kth_same_point = ignore_kth_same_point();
    nn_engine_.reset(new NearestNeighborMethod(
        typename NearestNeighborMethod::config(), nn_table, ID));
    light_lof_.reset(new light_lof(config, ID, nn_engine_));

    mtr_ = jubatus::util::math::random::mtrand(SEED);
  }