Change parameter 'k' to 'centers' for ewkm, fgkm, twkm