Inference with K-means