A unified framework for approximating and clustering data | Synapse