totalWithinGroupSumOfSquares

The minimal total within-group sum of squares achievable with the supplied number of groups, ignoring the structural constraints of a certificate. Non-increasing in the number of groups, which is why it must not be used to select that number.

Parameters

numGroups

the number of groups, within 1..maximumGroups