A discretization algorithm based on a heterogeneity criterion | Synapse