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

Method operator()

dlib/svm/kernel.h:153–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151 const scalar_type degree;
152
153 scalar_type operator() (
154 const sample_type& a,
155 const sample_type& b
156 ) const
157 {
158 return std::pow(gamma*(trans(a)*b) + coef, degree);
159 }
160
161 polynomial_kernel& operator= (
162 const polynomial_kernel& k

Callers

nothing calls this directly

Calls 1

transFunction · 0.50

Tested by

no test coverage detected