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

Method operator()

dlib/svm/sparse_kernel.h:121–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119 const scalar_type degree;
120
121 scalar_type operator() (
122 const sample_type& a,
123 const sample_type& b
124 ) const
125 {
126 return std::pow(gamma*(dot(a,b)) + coef, degree);
127 }
128
129 sparse_polynomial_kernel& operator= (
130 const sparse_polynomial_kernel& k

Callers

nothing calls this directly

Calls 1

dotFunction · 0.70

Tested by

no test coverage detected