Is there a mathematical transform that cuts off a signal at two extreme values? Here is code to do what I want:
def validTrans(inputValue, upper, lower): if inputValue > upper: return upper elif inputValue < lower: return lower else: return inputValue
It seems common enough to need to compress a range (alternatively put, cut off extreme values at some threshold) that I thought this might have a name, like
"someGuysNameTransform(input, u, l)". I can do this using a lambda function if needed, just wondering if this is reinventing the wheel.
Edit: nothing here seems to be it http://en.wikipedia.org/wiki/List_of_transforms