Systematic resampling.
systematic_resample(weights)
A vector of integers containing the indices of the resample.