astropy.stats

astropy.stats.

interval_overlap_length

Compute the length of overlap of two intervals.

float

The two intervals, (interval 1, interval 2).

The length of the overlap between the two intervals.