title: Sample to Create Uniform Distribution from Non-Uniform Data
body: <p>Given a dataset with a non-uniform distribution (highly peaked) I want to resample to create a new dataset with an approximately uniform distribution. My approach:</p>
  
  <ol>
  <li>Divide the data into bins.</li>
  <li>Target bin level = Smallest number of samples per bin, among all bins.</li>
  <li>Randomly delete samples until each bin count = target bin level.</li>
  </ol>
  
  <p>Is there a better technique?</p>