satlas.loglikelihood.create_gaussian_llh

satlas.loglikelihood.create_gaussian_llh(yerr=1, xerr=None, func=None)[source]

Returns the loglikelihood-function for a Gaussian distribution, with the given uncertainty on the data points. The input parameters will be (in order) the data to be fitted and the model response.

Parameters:yerr (array_like) – Measured uncertainties on the datapoint.
Returns:Function that calculates the loglikelihood for the given data and model values.
Return type:function