MCPcopy Create free account
hub / github.com/davisking/dlib / operator()

Method operator()

dlib/svm/kernel.h:424–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

422 typedef typename T::mem_manager_type mem_manager_type;
423
424 scalar_type operator() (
425 const sample_type& a,
426 const sample_type& b
427 ) const
428 {
429 scalar_type temp = 0;
430 for (long i = 0; i < a.size(); ++i)
431 {
432 temp += std::min(a(i), b(i));
433 }
434 return temp;
435 }
436
437 bool operator== (
438 const histogram_intersection_kernel&

Callers

nothing calls this directly

Calls 2

minFunction · 0.70
sizeMethod · 0.45

Tested by

no test coverage detected