Preprocessor.rank_filter#

Preprocessor.rank_filter(template, rank)[source]#

Perform rank filtering.

Parameters:
templateNDArray

The input atomic structure map.

rankint

Footprint value. 0 -> minimum filter, -1 -> maximum filter.

Returns:
NDArray

Simulated electron densities.