class_docstr: Author: josef-pktd and scipy mailinglist example
  'http://scipy-user.10969.n7.nabble.com/BivariateSpline-examples    -and-my-crashing-python-td14801.html'
class_docstr_tok: ["Author",":","josef-pktd","and","scipy","mailinglist","example","'http",":","\/\/scipy-user.10969.n7.nabble.com\/BivariateSpline-examples","-and-my-crashing-python-td14801.html","'"]
code: def setup(self, n_samples):
      x = np.arange(0, n_samples, 0.5)
      y = np.arange(0, n_samples, 0.5)
      x, y = np.meshgrid(x, y)
      x = x.ravel()
      y = y.ravel()
      xmin = x.min() - 1
      xmax = x.max() + 1
      ymin = y.min() - 1
      ymax = y.max() + 1
      s = 1.1
      self.yknots = np.linspace(ymin + s, ymax - s, 10)
      self.xknots = np.linspace(xmin + s, xmax - s, 10)
      self.z = np.sin(x) + 0.1 * np.random.normal(size=x.shape)
      self.x = x
      self.y = y
  
imports: import numpy
  from .common import run_monitored, set_mem_rlimit, Benchmark, safe_import
label_desc: Use image node_id 1 for calling the BivariateSpline obj's underlying member method code with example usage: obj.setup(n_samples) without return types