PeakMap::resample funcion development