exclude infinite in interval
Merge pull request #30 from loicbourg/patch-1

exclude infinite in interval