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

Method operator()

dlib/svm/function.h:382–395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

380 ) const { return basis_vectors; }
381
382 result_type operator() (
383 const sample_type& x
384 ) const
385 {
386 result_type temp = 0;
387 for (long i = 0; i < alpha.nr(); ++i)
388 temp += alpha(i) * kernel_function(x,basis_vectors(i));
389
390 temp = b + kernel_function(x,x) - 2*temp;
391 if (temp > 0)
392 return std::sqrt(temp);
393 else
394 return 0;
395 }
396
397 result_type operator() (
398 const distance_function& x

Callers

nothing calls this directly

Calls 2

sqrtFunction · 0.50
nrMethod · 0.45

Tested by

no test coverage detected