| 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& |