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

Function sinc

examples/kcentroid_ex.cpp:28–33  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

26// Here is the sinc function we will be trying to learn with the kcentroid
27// object.
28double sinc(double x)
29{
30 if (x == 0)
31 return 1;
32 return sin(x)/x;
33}
34
35int main()
36{

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected