mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-04-27 05:46:24 +02:00
10 lines
224 B
C++
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;
|
|
};
|