can you please add a docstring as exemplified in SegmentationPurity and SegmentationCoverage?
also, you should explain what is the role (and unit) of `tolerance` parameter.