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.


pomp documentation built on Sept. 13, 2024, 1:08 a.m.