initialize_pts: Initialize auxiliary variables given theta

Description Usage Arguments Value Examples

View source: R/initialize_pts.R

Description

For a point theta in the simplex, and a vector of counts (N_1,...,N_K), sample for each k, N_k points uniformly in the subsimplex Delta_k(theta), where N_k > 0, and compute the minimum ratio u_n,l / u_n,k for all l in 1,...,K.

Usage

1
initialize_pts(counts, theta)

Arguments

counts

a vector of K integers representing counts, possibly including zeros

theta

a point in the simplex, represented by a K-vector of non-negative values summing to one

Value

A list with the following entries.

Examples

1
2
3
4
## Not run: 
initialize_pts(c(3,0,2), c(1/3,1/3,1/3))

## End(Not run)

pierrejacob/montecarlodsm documentation built on June 16, 2021, 1:06 p.m.