Three-way scaling and clustering.