Gravitational Clustering of Galaxies: Comparison between Thermodynamic Theory and N-Body Simulations. IV. The Effects of Continuous Mass Spectra