Maximum A Posteriori Fitting¶
-
radvel.fitting.
maxlike_fitting
(post, verbose=True, method='Powell')[source]¶ Maximum A Posteriori Fitting
Perform a maximum a posteriori fit.
Parameters: - post (radvel.Posterior) – Posterior object with initial guesses
- verbose (bool [optional]) – Print messages and fitted values?
- method (string [optional]) – Minimization method. See documentation for scipy.optimize.minimize for available options.
Returns: Posterior object with parameters updated to their maximum a posteriori values
Return type: radvel.Posterior
-
radvel.fitting.
model_comp
(post, params=[], mc_list=[], verbose=False)[source]¶ Model Comparison
Vary the presence of additional parameters and check how the improve the model fit Save results as list of dictionaries of posterior statistics.
Parameters: - post (radvel.Posterior) – posterior object for final best-fit solution with all planets
- params (list of strings) – (optional) type of comparison to make via bic/aic
- mc_list (list of OrderedDicts) – (optional) list of dictionaries from different model comparisons. Each value in the dictionary is a tuple with a statistic as the first element and a description as the second element.
- verbose (bool) – (optional) print out statistics
Returns: List of dictionaries with fit statistics. Each value in the dictionary is a tuple with the statistic value as the first element and a description of that statistic in the second element.
Return type: list of OrderedDicts