mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-09 20:12:38 +02:00
11 lines
224 B
C++
11 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;
|
||
|
|
};
|