Low Memory Use Trimmed K-Means
Calculates BIC for a given clustering.
Allocates each rw (observation) in data to the nearest cluster centre.
Rescales a matrix in place.
Trimmed k-means clustering
Performs the trimmed k-means clustering algorithm with lower memory use. It also provides a number of utility functions such as BIC calculations.