original_docstring:  Return a scaled Delaunay mesh and scale factors 
docstring: Return a scaled Delaunay mesh and scale factors
docstring_tokens: Return a scaled Delaunay mesh and scale factors
code: def scaled_Delaunay(self, points):
          """ Return a scaled Delaunay mesh and scale factors """
          scale_factors = []
          points = np.array(points)
          for i in range(points.shape[1]):
              scale_factors.append(1.0/np.mean(points[:,i]))
              points[:,i] = points[:,i]*scale_factors[-1]
          mesh = Delaunay(points)
          for i in range(points.shape[1]):
              mesh.points[:,i] = mesh.points[:,i]/scale_factors[i]
          return mesh
code_tokens: def scaled_Delaunay ( self , points ) : scale_factors = [ ] points = np . array ( points ) for i in range ( points . shape [ 1 ] ) : scale_factors . append ( 1.0 / np . mean ( points [ : , i ] ) ) points [ : , i ] = points [ : , i ] * scale_factors [ - 1 ] mesh = Delaunay ( points ) for i in range ( points . shape [ 1 ] ) : mesh . points [ : , i ] = mesh . points [ : , i ] / scale_factors [ i ] return mesh
short_docstring: Return a scaled Delaunay mesh and scale factors
short_docstring_tokens: Return a scaled Delaunay mesh and scale factors
comment: """ Return a scaled Delaunay mesh and scale factors """