MCPcopy Create free account
hub / github.com/audeering/opensmile / kernel_poly

Method kernel_poly

scripts/modeltrain/libsvm-small/svm.cpp:233–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231 return dot(x[i],x[j]);
232 }
233 double kernel_poly(int i, int j) const
234 {
235 return powi(gamma*dot(x[i],x[j])+coef0,degree);
236 }
237 double kernel_rbf(int i, int j) const
238 {
239 return exp(-gamma*(x_square[i]+x_square[j]-2*dot(x[i],x[j])));

Callers

nothing calls this directly

Calls 1

powiFunction · 0.70

Tested by

no test coverage detected