calculates the sum of distances between sample vectors and cluster centers.
[QuantizationError] = GetQuantizationError(Samples, Centers, NormType)
matrix that includes sample vectors as rows
matrix that includes cluster centers as rows
norm of vectors, must be a scalar greater than zeros, can be %inf
sum of distances between sample vectors and cluster centers
For each row vector of Samples the nearest neighbor among the row vectors of Centers is searched and the distance is calculated. The sum of distances is returned.
Richard O. Duda, Peter E. Hart, David G. Stork, 'Pattern Classification', John Wiley & Sons Inc., New York, Chichester, Weinheim, Brisbane, Singapore, Toronto, Second Edition, 2001