Preprocessor.hamming_filter#

Preprocessor.hamming_filter(template, width)[source]#

Apply Hamming filter defined as:

\[f_{hamming} = 0.54 - 0.46\cos(\frac{2\pi n}{M-1}) 0 \leq n \leq M-1\]
Parameters:
templateNDArray

The input atomic structure map.

widthint

Width of the filter window.

Returns:
NDArray

Simulated electron densities.