From 710548faceee0e83303361c5e31d6be19d6e210e Mon Sep 17 00:00:00 2001 From: Hu Zhao <zhao@mbd.rwth-aachen.de> Date: Wed, 26 Oct 2022 15:44:11 +0200 Subject: [PATCH] docs: change doc string of sample function --- src/psimpy/sampler/metropolis_hastings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/psimpy/sampler/metropolis_hastings.py b/src/psimpy/sampler/metropolis_hastings.py index 4c513b7..5298c4e 100644 --- a/src/psimpy/sampler/metropolis_hastings.py +++ b/src/psimpy/sampler/metropolis_hastings.py @@ -136,8 +136,8 @@ class MetropolisHastings: mh_accept : numpy array An array of shape (nsamples,). Each element indicates whether the corresponding sample is the proposed new state (value 1) or the old - state (value 0). `np.sum(mh_accept)/len(mh_accept)` thus gives the - overall acceptance rate. + state (value 0). `np.mean(mh_accept)` thus gives the overall + acceptance rate. """ if (self.target is None) and (self.ln_target is None): raise ValueError( -- GitLab