BaseDistribution#
- class abtem.distributions.BaseDistribution[source]#
Bases:
EqualityMixin
,CopyMixin
Base object for defining distributions of simulation parameters.
- __init__()#
Methods
__init__
()copy
()Make a copy.
divide
(chunks[, lazy])Divide the distribution into chunks.
Attributes
The number of dimensions in the distribution.
Calculate the mean of the ensemble.
The shape of the distribution parameters.
Scalar values representing the distribution.
Weight of each of distribution value.
- copy()#
Make a copy.
- abstract property dimensions: int#
The number of dimensions in the distribution.
- abstract property ensemble_mean: bool#
Calculate the mean of the ensemble.
- abstract property shape: tuple[int, ...]#
The shape of the distribution parameters.
- abstract property values: ndarray#
Scalar values representing the distribution.
- abstract property weights: ndarray#
Weight of each of distribution value.