GPy/GPy/kern/sympy_helpers.cpp

11 lines
224 B
C++
Raw Normal View History

#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;
};