Refine iknn, ls, lls, rowavg