diameter_synthesis.distribution_fitting¶
Functions to fit distributions to parameters of diameter models.
Functions
|
Evaluate the fit of a distribution. |
|
Fit a distribution from data. |
|
Sample from a distribution. |
- diameter_synthesis.distribution_fitting.evaluate_distribution(value, distribution, params)¶
Evaluate the fit of a distribution.
- diameter_synthesis.distribution_fitting.fit_distribution(all_data, distribution, attribute_name=None, extra_params=None)¶
Fit a distribution from data.
- diameter_synthesis.distribution_fitting.sample_distribution(model, rng=numpy.random)¶
Sample from a distribution.
- Parameters:
model (dict) – the model to use.
rng (numpy.random.Generator) – the random number generator.
- Returns:
the value of the distribution at the given position.
- Return type: