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

Function sinc

examples/svr_ex.cpp:20–25  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

18// Here is the sinc function we will be trying to learn with the svr_trainer
19// object.
20double sinc(double x)
21{
22 if (x == 0)
23 return 1;
24 return sin(x)/x;
25}
26
27int main()
28{

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected