diff --git a/src/mdevaluate/correlation.py b/src/mdevaluate/correlation.py index 862f43d..c6a2cbd 100644 --- a/src/mdevaluate/correlation.py +++ b/src/mdevaluate/correlation.py @@ -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(