class_docstr: No-U-turn sampler (NUTS) on flat surfaces.
class_docstr_tok: ["No-U-turn","sampler","(","NUTS",")","on","flat","surfaces","."]
docstr: Gets a point on the track between a and b (inclusive).
  
  Parameters
  ----------
  a: array
      starting point
  b: array
      end point
  
  Returns
  --------
  newpoint: tuple
      tuple of point_coordinates and loglikelihood
  is_independent: bool
      always True
docstr_tok: ["Gets","a","point","on","the","track","between","a","and","b","(","inclusive",")",".","Parameters","--","--","--","--","--","a",":","array","starting","point","b",":","array","end","point","Returns","--","--","--","--","newpoint",":","tuple","tuple","of","point_coordinates","and","loglikelihood","is_independent",":","bool","always","True"]
code: def sample_chain_point(self, a, b):
      """
      Gets a point on the track between a and b (inclusive).
  
      Parameters
      ----------
      a: array
          starting point
      b: array
          end point
  
      Returns
      --------
      newpoint: tuple
          tuple of point_coordinates and loglikelihood
      is_independent: bool
          always True
      """
      if self.plot:
          for i in range(a, b + 1):
              xi, vi, Li, onpath = self.contourpath.interpolate(i)
              plt.plot(xi[0], xi[1], "_ ", color="b", ms=10, mew=2)
  
      while True:
          i = np.random.randint(a, b + 1)
          xi, vi, Li, onpath = self.contourpath.interpolate(i)
          if not onpath:
              continue
          return (xi, Li), True
  
imports: import numpy
  from numpy.linalg import norm
  import matplotlib.pyplot
  from .samplingpath import angle, extrapolate_ahead
label_desc: Use image node_id 3 for calling the ClockedNUTSSampler obj's underlying member method code with example usage: obj.sample_chain_point(a, b) and returns: xi,  Li,  True