An optimized method for distribution-preserving class-proportional down-sampling of bio-medical data.