ekmett/intervals — pull request #9 by dmcclean (2014-03-23 03:15:08+00:00)
Title: Added clamp method for constraining a value to lie within an interval.

I keep creating this function everywhere that I import intervals, so I thought I would see if you are interested in taking it. It is very commonly used in my control engineering/signal processing code; it may not be useful to your intended uses of the package.

I tried to match your coding and documentation style, I'm not sure how well I did.