galapy.sampling.Statistics

Functions

chi2(data, error, model)

chi2_uplim(data, error, model)

gaussian_loglikelihood(data, error, model, ...)

Uplim methods are: - 'simple' : - 'chi2' : - 'S12' :

simple_uplim(data, error, model)

transform_to_prior_unit_cube(values, ...)

Maps the values of the parameters in the unit-cube prior, considered as uniform.

galapy.sampling.Statistics.gaussian_loglikelihood(data, error, model, uplims, method_uplims='simple')

Uplim methods are: - ‘simple’ : - ‘chi2’ : - ‘S12’ :

galapy.sampling.Statistics.transform_to_prior_unit_cube(values, prior_limits)

Maps the values of the parameters in the unit-cube prior, considered as uniform.

Parameters:
  • values (scalar or array-like) – value(s) of the parameters

  • prior_limits (array-like) – array with the lower/upper bounds of the uniform prior associated to each parameter listed in ‘values’. Shape should be Nx2 where N == len(values).

Returns:

  • scalar or array-like

  • values mapped within the limits of the prior (all values in the [0.,1.) interval)