weighted_sample_double: Sample single double from vector with probability weights.

Description Usage Arguments Value

View source: R/RcppExports.R

Description

Sample single double from vector with probability weights.

Usage

1

Arguments

x

Vector of integers to sample from

weights

Vector of weights

Value

Probability weighted sample


mrc-ide/siR documentation built on May 6, 2019, 4:33 p.m.