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

Method operator()

dlib/svm/sparse_kernel.h:209–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207 const scalar_type coef;
208
209 scalar_type operator() (
210 const sample_type& a,
211 const sample_type& b
212 ) const
213 {
214 return std::tanh(gamma*(dot(a,b)) + coef);
215 }
216
217 sparse_sigmoid_kernel& operator= (
218 const sparse_sigmoid_kernel& k

Callers

nothing calls this directly

Calls 2

dotFunction · 0.70
tanhFunction · 0.50

Tested by

no test coverage detected