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: templateNDArrayThe input atomic structure map. widthintWidth of the filter window. Returns: NDArraySimulated electron densities.