class FloatRange(object):
    def __init__(self, start, end):
        self.start = start
        self.end = end
    def __eq__(self, other):
        return self.start <= other <= self.end

Add small helper class to check if float parameters are in allowed range
Add small helper class to check if float parameters are in allowed range
