built in function for computing overlap in Python
Posted
by user248237
on Stack Overflow
See other posts from Stack Overflow
or by user248237
Published on 2010-06-01T23:03:45Z
Indexed on
2010/06/01
23:13 UTC
Read the original article
Hit count: 197
python
is there a built in function to compute the overlap between two discrete intervals, e.g. the overlap between [10, 15] and [20, 38]? In that case the overlap is 0. If it's [10, 20], [15, 20], the overlap is 5.
thanks.
© Stack Overflow or respective owner