astropy.stats
astropy.stats.
interval_overlap_length
Compute the length of overlap of two intervals.
i1, i2 : pairs of two floats
The two intervals.
l : float
The length of the overlap between the two intervals.