resample function

Resample

Resample

Systematic resampling.

systematic_resample(weights, Np = length(weights))

Arguments

  • weights: numeric; vector of weights.
  • Np: integer scalar; number of samples to draw.

Returns

A vector of integers containing the indices of the resample.

  • Maintainer: Aaron A. King
  • License: GPL-3
  • Last published: 2025-01-08