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

Function sinc

dlib/test/svm.cpp:147–152  ·  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

145 // Here is the sinc function we will be trying to learn with the krls
146 // object.
147 double sinc(double x)
148 {
149 if (x == 0)
150 return 1;
151 return sin(x)/x;
152 }
153
154
155 void test_regression (

Callers 2

test_regressionFunction · 0.70
test_anomaly_detectionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected