(self, points)
return simplex_ids
Find the simplices corresponding to points.

        Parameters
        ----------
        points : 2darray

        Returns
        -------
        simplices : np.array (int)
            The indices of the simplices
Find the simplices corresponding to points.
Find the simplices corresponding to points .
def find_simplex(self, points):
        """Find the simplices corresponding to points.

        Parameters
        ----------
        points : 2darray

        Returns
        -------
        simplices : np.array (int)
            The indices of the simplices

        """
        disc = self.discretization
        rectangles = disc.state_to_rectangle(points)

        # Convert to unit coordinates
        points = disc._center_states(points, clip=True)

        # Convert to basic hyperrectangle coordinates and find simplex
        unit_coordinates = points % disc.unit_maxes
        simplex_ids = self.triangulation.find_simplex(unit_coordinates)
        simplex_ids = np.atleast_1d(simplex_ids)

        # Adjust for the hyperrectangle index
        simplex_ids += rectangles * self.triangulation.nsimplex

        return simplex_ids
def find_simplex ( self , points ) : disc = self . discretization rectangles = disc . state_to_rectangle ( points ) # Convert to unit coordinates points = disc . _center_states ( points , clip = True ) # Convert to basic hyperrectangle coordinates and find simplex unit_coordinates = points % disc . unit_maxes simplex_ids = self . triangulation . find_simplex ( unit_coordinates ) simplex_ids = np . atleast_1d ( simplex_ids ) # Adjust for the hyperrectangle index simplex_ids += rectangles * self . triangulation . nsimplex return simplex_ids