MCPcopy Create free account
hub / github.com/davisking/dlib / perform_test

Method perform_test

dlib/test/kcentroid.cpp:665–679  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

663 {}
664
665 void perform_test (
666 )
667 {
668 // The idea here is to exercize all the various overloads of the kcentroid object. We also want
669 // to exercize the non-overloaded default version. That is why we have these unopt_* linear
670 // kernels
671 test_kcentroid_with_linear_kernel<linear_kernel<matrix<double,5,1> > >();
672 test_kcentroid_with_offset_linear_kernel<offset_kernel<linear_kernel<matrix<double,4,1> > > >();
673 test_kcentroid_with_linear_kernel<unopt_linear_kernel<matrix<double,5,1> > >();
674 test_kcentroid_with_offset_linear_kernel<offset_kernel<unopt_linear_kernel<matrix<double,4,1> > > >();
675 test_kcentroid_with_sparse_linear_kernel<sparse_linear_kernel<std::map<unsigned long,double> > >();
676 test_kcentroid_with_offset_sparse_linear_kernel<offset_kernel<sparse_linear_kernel<std::map<unsigned long,double> > > >();
677 test_kcentroid_with_sparse_linear_kernel<unopt_sparse_linear_kernel<std::map<unsigned long,double> > >();
678 test_kcentroid_with_offset_sparse_linear_kernel<offset_kernel<unopt_sparse_linear_kernel<std::map<unsigned long,double> > > >();
679 }
680 } a;
681
682}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected