promoted MIN_SAMPLES to a constructor parameter