Automating velocity adjustments

Hi @rraby, are you familiar with the powerful Histogram tool? (maybe it cannot jet make what you desire but is very flexible, and works also on the selection).

OR…

…the Transform Tool (which gives you the percentage):