Ignore:
Timestamp:
Oct 16, 2010, 7:00:12 AM (12 years ago)
Author:
Peter
Message:

adding an archetype class for distance concept and use that class in KNN and NCC. Adding CopyConstructible? to requirement for Distance concept

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/ncc_test.cc

    r2119 r2338  
    4747
    4848void predict_nan_data_unweighted_data(test::Suite& suite);
     49void compile_test(test::Suite& suite);
    4950
    5051int main(int argc,char* argv[])
     
    259260    suite.err() << "Difference to stored prediction too large\n";
    260261  }
     262  compile_test(suite);
    261263
    262264  return suite.return_value();
    263265}
     266
     267
     268void compile_test(test::Suite& suite)
     269{
     270  if (false) {
     271    boost::detail::dummy_constructor dummy;
     272    test::distance_archetype distance(dummy);
     273    classifier::NCC<test::distance_archetype> ncc(distance);
     274  }
     275}
     276
    264277
    265278void predict_nan_data_unweighted_data(test::Suite& suite)
Note: See TracChangeset for help on using the changeset viewer.