linear#

diffsims.utils.shape_factor_models.linear(excitation_error, max_excitation_error)[source]#

Returns an intensity linearly scaled with by the excitation error

Parameters:
excitation_errorarray_like or float

The distance (reciprocal) from a reflection to the Ewald sphere

max_excitation_errorfloat

The distance at which a reflection becomes extinct

Returns:
intensitiesarray_like or float