MCPcopy Create free account
hub / github.com/PointCloudLibrary/pcl / dot

Method dot

ml/src/svm.cpp:426–446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

424}
425
426double
427Kernel::dot(const svm_node* px, const svm_node* py)
428{
429 double sum = 0;
430
431 while (px->index != -1 && py->index != -1) {
432 if (px->index == py->index) {
433 sum += px->value * py->value;
434 ++px;
435 ++py;
436 }
437 else {
438 if (px->index > py->index)
439 ++py;
440 else
441 ++px;
442 }
443 }
444
445 return sum;
446}
447
448double
449Kernel::k_function(const svm_node* x, const svm_node* y, const svm_parameter& param)

Callers 15

computeFunction · 0.80
addModelMethod · 0.80
computeClutterCueMethod · 0.80
trainMethod · 0.80
computeDistanceMethod · 0.80
setParamMethod · 0.80
slopeMethod · 0.80
minimizeOneStepMethod · 0.80
segmentToSegmentDistMethod · 0.80

Calls

no outgoing calls

Tested by 5

TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64