Interface for custom patch distance calculation class