GPy/GPy/kern/sympy_helpers.cpp
James Hensman fb21a3589b added sympykern as a 'kernpart' object.
now we can add sympykerns to any other kern
2012-11-30 17:32:32 +00:00

10 lines
224 B
C++

#include <math.h>
double DiracDelta(double x){
if((x<0.000001) & (x>-0.000001))//go on, laught at my c++ skills
return 1.0;
else
return 0.0;
};
double DiracDelta(double x,int foo){
return 0.0;
};