choose next sample by sample position