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

Method operator()

dlib/svm/sparse_kernel.h:37–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35 const scalar_type gamma;
36
37 scalar_type operator() (
38 const sample_type& a,
39 const sample_type& b
40 ) const
41 {
42 const scalar_type d = distance_squared(a,b);
43 return std::exp(-gamma*d);
44 }
45
46 sparse_radial_basis_kernel& operator= (
47 const sparse_radial_basis_kernel& k

Callers

nothing calls this directly

Calls 2

distance_squaredFunction · 0.85
expFunction · 0.85

Tested by

no test coverage detected