resample: Resample

resampleR Documentation

Resample

Description

Systematic resampling.

Usage

systematic_resample(weights, Np = length(weights))

Arguments

weights

numeric; vector of weights.

Np

integer scalar; number of samples to draw.

Value

A vector of integers containing the indices of the resample.


kingaa/pomp documentation built on Sept. 16, 2024, 9:25 p.m.