satlas.stats.fitting.likelihood_loglikelihood¶
-
satlas.stats.fitting.
likelihood_loglikelihood
(f, x, y, xerr, func)[source]¶ Given a parameters object, a Model object, experimental data and a loglikelihood function, calculates the loglikelihood for all data points.
Parameters: - f (
BaseModel
) – Model object containing all the information about the fit; will be fitted to the given data. - x (array_like) – Experimental data for the x-axis.
- y (array_like) – Experimental data for the y-axis.
- xerr (array_like) – Experimental data on x.
- func (function) – Function calculating the loglikelihood of y_data being drawn from a distribution characterized by y_model.
Returns: Array containing the loglikelihood for each seperate datapoint.
Return type: array_like
- f (