apply_gaussian_windowing

tenpy.tools.spectral_function_tools.apply_gaussian_windowing(a, sigma: float = 0.4, axis=0)[source]

Simple gaussian windowing function along an axes.

Applying a windowing function avoids Gibbs oscillation. tn are time steps 0, 1, …, N

Parameters:
  • a (ndarray) – a ndarray where the time series is along axis axes

  • sigma (float) – standard-deviation used for the gaussian window

  • axis (int) – axes along which to apply the gaussian window

Return type:

np.ndarray