(self, points)
Initialization, see `_Delaunay1D`.
Initialization, see `_Delaunay1D`.
Initialization see _Delaunay1D .
def __init__(self, points):
        """Initialization, see `_Delaunay1D`."""
        if points.shape[1] > 1:
            raise AttributeError('This only works for 1D inputs.')
        if points.shape[0] > 2:
            raise AttributeError('This only works for two points')

        self.points = points
        self.nsimplex = len(points) - 1

        self._min = np.min(points)
        self._max = np.max(points)

        self.simplices = np.array([[0, 1]])
def __init__ ( self , points ) : if points . shape [ 1 ] > 1 : raise AttributeError ( 'This only works for 1D inputs.' ) if points . shape [ 0 ] > 2 : raise AttributeError ( 'This only works for two points' ) self . points = points self . nsimplex = len ( points ) - 1 self . _min = np . min ( points ) self . _max = np . max ( points ) self . simplices = np . array ( [ [ 0 , 1 ] ] )