interval_overlap_length

astropy.stats.interval_overlap_length(i1, i2)[source] [edit on github]

Compute the length of overlap of two intervals.

Parameters:
i1, i2 : pairs of two floats

The two intervals.

Returns:
l : float

The length of the overlap between the two intervals.