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 Aug. 8, 2023, 1:08 a.m.