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