RBF kernel approximation inspired by the paper "Convolutional kernel network".