satlas.stats.fitting.likelihood_x_err¶
-
satlas.stats.fitting.
likelihood_x_err
(f, x, y, xerr, func)[source]¶ Calculates the loglikelihood for a model given x and y values. Incorporates a common given error on the x-axis.
Parameters: - f (
BaseModel
) – Model object set to current parameters. - x (array_like) – Experimental data for the x-axis.
- y (array_like) – Experimental data for the y-axis.
- xerr (float) – Experimental uncertainty on x.
- func (function) – Function taking (y_data, y_model) as input, and returning the loglikelihood that the data is drawn from a distribution characterized by the model.
Returns: Return type: array_like
- f (