(self, point)
return ltbound, gtbound
Returns the (lower_bound, upper_bound) tuple of a point implied by the reference set and the monotone relationship vector.
    Use it to improve and understand the reference set without triggering a MonotoneError.
    Returns np.inf as the second argument if there is no upper bound and np.NINF as the first argument if there is no lower bound.

    Required argument:
    point -- Point at which to assess upper and lower bounds.
Returns the (lower_bound, upper_bound) tuple of a point implied by the reference set and the monotone relationship vector.
    Use it to improve and understand the reference set without triggering a MonotoneError.
    Returns np.inf as the second argument if there is no upper bound and np.NINF as the first argument if there is no lower bound.
Returns the ( lower_bound upper_bound ) tuple of a point implied by the reference set and the monotone relationship vector . Use it to improve and understand the reference set without triggering a MonotoneError . Returns np . inf as the second argument if there is no upper bound and np . NINF as the first argument if there is no lower bound .
def value_bounds(self, point):
    """
    Returns the (lower_bound, upper_bound) tuple of a point implied by the reference set and the monotone relationship vector.
    Use it to improve and understand the reference set without triggering a MonotoneError.
    Returns np.inf as the second argument if there is no upper bound and np.NINF as the first argument if there is no lower bound.

    Required argument:
    point -- Point at which to assess upper and lower bounds.
    """
    padj = point/self.scale
    points_greater_than = filter(lambda x: np.allclose(x,padj) or self.__monotone_rel__(x,padj)==1, self.points.keys())
    points_less_than = filter(lambda x: np.allclose(x,padj) or self.__monotone_rel__(padj,x)==1, self.points.keys())
    gtbound = np.inf if self.maxval is None else self.maxval
    ltbound = np.NINF if self.minval is None else self.minval
    for p in points_greater_than:
      gtbound = min(self.points[p],gtbound)
    for p in points_less_than:
      ltbound = max(self.points[p],ltbound)
    return ltbound, gtbound
def value_bounds ( self , point ) : padj = point / self . scale points_greater_than = filter ( lambda x : np . allclose ( x , padj ) or self . __monotone_rel__ ( x , padj ) == 1 , self . points . keys ( ) ) points_less_than = filter ( lambda x : np . allclose ( x , padj ) or self . __monotone_rel__ ( padj , x ) == 1 , self . points . keys ( ) ) gtbound = np . inf if self . maxval is None else self . maxval ltbound = np . NINF if self . minval is None else self . minval for p in points_greater_than : gtbound = min ( self . points [ p ] , gtbound ) for p in points_less_than : ltbound = max ( self . points [ p ] , ltbound ) return ltbound , gtbound