measure
Note that the indices were inverted relative to previous use, which I believe was incorrect. (See example in docstring, which works, where it used to be inverted.)