def aitchison_aitken_reg(h, Xi, x):
 kernel_value = np.ones(Xi.size)
 ix = (Xi != x)
 inDom = (ix * h)
 kernel_value[ix] = inDom[ix]
 return kernel_value

def aitchison_aitken_reg ( h , Xi , x ) : kernel_value = np . ones ( Xi . size ) ix = ( Xi != x ) inDom = ( ix * h ) kernel_value [ ix ] = inDom [ ix ] return kernel_value
a version for the aitchison-aitken kernel for nonparametric regression .