Skip to content

Commit

Permalink
fix call to scipy.integrate.simpson
Browse files Browse the repository at this point in the history
  • Loading branch information
vloison committed Jun 26, 2024
1 parent 00db0a7 commit 71aa1c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fadin/utils/utils_simu.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def __init__(self, custom_density, params=dict(), kernel_length=10):
# function to normalise the pdf over chosen domain

def normalisation(self, x):
return simpson(self.pdf(x), x)
return simpson(self.pdf(x), x=x)

def create_cdf_ppf(self):
# define normalization support with the given kernel length
Expand Down

0 comments on commit 71aa1c0

Please sign in to comment.