I need to resample a dataset based on the following principle from Ng and Srinivasan (2008) Description of the method. Where τmin is a user-specified threshold and N is the