from_values#
- abtem.distributions.from_values(values, weights=None, ensemble_mean=False)[source]#
Return a distribution from user-defined values and weights.
- Parameters:
values (sequence of int or float) – The scalar values of the parameters.
weights (sequence of float, optional) – The scalar values of the weights (default is None).
ensemble_mean (bool, optional) – If True, the mean of an ensemble of measurements defined by the distribution is calculated, otherwise the full ensemble is kept.
- Return type: