Preprocessor.mean_filter#

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

Perform mean filtering.

Parameters:
templateNDArray

The input atomic structure map.

widthNDArray

Width of the mean filter along each axis. Can either have length one or template.ndim.

Returns:
NDArray

Simulated electron densities.