docs: def getIndexForValue(self, value):
          """
          Return the ramp index for the given value
          :param value: Lookup value
          :rtype: int
          """
          return math.trunc(self.slope * float(value) + self.intercept)