code: def aitchison_aitken_cdf(h, Xi, x_u):
      x_u = int(x_u)
      Xi_vals = np.unique(Xi)
      ordered = np.zeros(Xi.size)
      num_levels = Xi_vals.size
      for x in Xi_vals:
          if (
              x <= x_u
          ):  # FIXME: why a comparison for unordered variables?
              ordered += aitchison_aitken(
                  h, Xi, x, num_levels=num_levels
              )
  
      return ordered
  
file_path: statsmodels/statsmodels/nonparametric/kernels.py
imports: import numpy
  from scipy.special import erf
label_desc: Use image node_id 9 for calling a global function with example usage: aitchison_aitken_cdf(h, Xi, x_u) and returns: ordered