Adjusted van_hove_self to better work with shifted_correlation

This commit is contained in:
Sebastian Kloth 2023-12-18 17:02:22 +01:00
parent e91defdc7a
commit 21dcc7641b

View File

@ -264,8 +264,8 @@ def van_hove_self(
else:
raise ValueError('Parameter axis has to be ether "all", "x", "y", or "z"!')
hist = np.histogram(delta_r, bins, range=(bins[0], bins[-1]))[0]
r = (bins[1:] + bins[:-1]) / 2
return r, hist / len(start_frame)
hist = hist / (bins[1:] - bins[:-1])
return hist / len(start_frame)
def van_hove_distinct(