[Error Sum of Squares](https://hlab.stanford.edu/brian/error_sum_of_squares.html) $P_k = \sum_{i=1}^k \sum_{x \in C_{i} } \left( d(x, c_i) \right) ^2$