A robust approach for analyzing a heterogeneous structural ensemble