Skip to content

Commit

Permalink
Small add
Browse files Browse the repository at this point in the history
  • Loading branch information
mraveri committed Aug 12, 2020
1 parent e948333 commit 50c4850
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tensiometer/parameter_reporting.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,14 @@ def get_mode1d(chain, param_names, settings=None):

def get_mean(chain, param_names):
"""
Utility to compute the parameter mean.
Mostly this is an utility to get the mean from parameter names rather than
parameter indexes as we would do in GetDist.
:param chain: :class:`~getdist.mcsamples.MCSamples` the input chain.
:param param_names: optional choice of parameter names to
restrict the calculation. Default is all parameters.
:return: an array with the mean.
"""
# initial check of parameter names:
if param_names is None:
Expand Down

0 comments on commit 50c4850

Please sign in to comment.