modificando parámetros
improved resampling algorithm