Commit ebc21767 authored by Médéric Boquien's avatar Médéric Boquien
Browse files

Clarifies the assumptions behind weighted_param().

parent 9b651256
......@@ -289,13 +289,15 @@ def compute_chi2(models, obs, corr_dz, wz, lim_flag):
def weighted_param(param, weights):
"""Compute the weighted mean and standard deviation of an array of data.
Note that here we assume that the sum of the weights is normalised to 1.
This simplifies and accelerates the computation.
param: array
Values of the parameters for the entire grid of models
weights: array
Weights by which to weight the parameter values
Weights by which to weigh the parameter values
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment