aim2dat.fct.smearing

Module to implement different smearing methods.

Module Contents

Functions

apply_smearing(→ numpy.array)

Apply smearing to a dataset. Different smearing methods can be specified.

Attributes

AVAILABLE_SMEARING_METHODS

aim2dat.fct.smearing.apply_smearing(y: numpy.array, sigma: float = 0.5, radius: int = None, method: str = 'gaussian') numpy.array[source]

Apply smearing to a dataset. Different smearing methods can be specified.

Parameters:
  • y (np.array) – y-values of dataset.

  • sigma (float) – Scale parameter. Defaults to 0.05.

  • radius (int) – Radius of the kernel.

  • method (str) – String to specify smearing method, see AVAILABLE_SMEARING_METHODS. Defaults to ‘gaussian’.

Returns:

np.array – Smeared y-values.

aim2dat.fct.smearing.AVAILABLE_SMEARING_METHODS