Unify treatment of symmetric and non-symmetric distributions
Non-symmetric lambda and alpha distribution are forbidden in GUI.
Presumably the reason is that in scan we need to apply the same distributions to different points. SymmetricResolutionItem
has setMean
method that is unavailable for non-symmetric types.
IDistribution1D
recently received setMean
method, defined for all distribution types. The same approach can be applied to the itemized classes.
Alternatively, sampling can be performed at any position without changing the distribution itself, using a constant method
IDistribution1D::distributionSamples
which can accept the target value.
Edited by Mikhail Svechnikov