2
votes
1answer
74 views

How to calculate number of lumps of a 1D discrete point distribution?

I would like to calculate the number of lumps of a given set of points. Defining "number of lumps" as "the number of groups with points at distance 1" Supose we have a discrete 1D space in this ...