kmeans pf