MCPcopy Create free account
hub / github.com/davisking/dlib / sinc

Function sinc

dlib/test/svm.cpp:244–249  ·  view source on GitHub ↗

Here is the sinc function we will be trying to learn with the krls object.

Source from the content-addressed store, hash-verified

242 // Here is the sinc function we will be trying to learn with the krls
243 // object.
244 double sinc(double x)
245 {
246 if (x == 0)
247 return 1;
248 return sin(x)/x;
249 }
250
251
252 void test_regression (

Callers 2

test_regressionFunction · 0.70
test_anomaly_detectionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected