class_docstr: Spider: a set of rays attached to the origin.
  
  The k-spider consists of k copies of the positive real line
  :math:`\mathbb{R}_{\geq 0}` glued together at the origin [Feragen2020]_.
  
  Parameters
  ----------
  n_rays : int
      Number of rays to attach to the origin.
      Note that zero counts as the origin not as a ray.
  
  References
  ----------
  .. [Feragen2020]  Feragen, Aasa, and Tom Nye. "Statistics on stratified spaces."
      Riemannian Geometric Statistics in Medical Image Analysis.
      Academic Press, 2020. 299-342.
class_docstr_tok: ["Spider",":","a","set","of","rays","attached","to","the","origin",".","The","k-spider","consists","of","k","copies","of","the","positive","real","line",":","math",":","`","\\mathbb","{","R","}","_","{","\\geq","0","}","`","glued","together","at","the","origin","[","Feragen2020","]","_.","Parameters","--","--","--","--","--","n_rays",":","int","Number","of","rays","to","attach","to","the","origin",".","Note","that","zero","counts","as","the","origin","not","as","a","ray",".","References","--","--","--","--","--","..","[","Feragen2020","]","Feragen",",","Aasa",",","and","Tom","Nye",".","``","Statistics","on","stratified","spaces",".","''","Riemannian","Geometric","Statistics","in","Medical","Image","Analysis",".","Academic","Press",",","2020",".","299-342","."]
docstr: Check if a random point has the correct number of rays.
  
  Parameters
  ----------
  single_point : SpiderPoint
       Point to be checked.
  
  Returns
  -------
  belongs : boolean
      Boolean denoting if the point has a ray in the rays set.
docstr_tok: ["Check","if","a","random","point","has","the","correct","number","of","rays",".","Parameters","--","--","--","--","--","single_point",":","SpiderPoint","Point","to","be","checked",".","Returns","--","--","--","-","belongs",":","boolean","Boolean","denoting","if","the","point","has","a","ray","in","the","rays","set","."]
code: def _n_rays_check(self, single_point):
      r"""Check if a random point has the correct number of rays.
  
      Parameters
      ----------
      single_point : SpiderPoint
           Point to be checked.
  
      Returns
      -------
      belongs : boolean
          Boolean denoting if the point has a ray in the rays set.
      """
      if single_point.stratum not in list(range(self.n_rays + 1)):
          return False
      return True
  
imports: import geomstats.backend
  from geomstats.geometry.euclidean import Euclidean
  from geomstats.geometry.stratified.point_set import Point, PointSet, PointSetMetric, _vectorize_point, broadcast_lists
label_desc: Use image node_id 5 for calling the Spider obj's underlying member method code with example usage: obj._n_rays_check(single_point) and returns: True, False