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

Function sinc

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

Here is the sinc function we will be trying to learn with the one-class SVMs

Source from the content-addressed store, hash-verified

26
27// Here is the sinc function we will be trying to learn with the one-class SVMs
28double sinc(double x)
29{
30 if (x == 0)
31 return 2;
32 return 2*sin(x)/x;
33}
34
35int main()
36{

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected