code: def _kamb_count(cos_dist, sigma=3):
      
      n = float(cos_dist.size)
      dist = _kamb_radius(n, sigma)
      count = (cos_dist >= dist).astype(float)
      return count, _kamb_units(n, dist)
docs: Original Kamb kernel function (raw count within radius).