fixed strange bug. In python 3, numbers startin 0 are octal.

This commit is contained in:
James Hensman 2015-08-12 15:19:04 +01:00
parent ec163a3134
commit f8376765c6
2 changed files with 2 additions and 1 deletions

View file

@ -8,6 +8,7 @@ from scipy.special import ndtr as std_norm_cdf
#define a standard normal pdf
_sqrt_2pi = np.sqrt(2*np.pi)
def std_norm_pdf(x):
x = np.clip(x,-1e150,1e150)
return np.exp(-np.square(x)/2)/_sqrt_2pi
def inv_std_norm_cdf(x):