get.index.b: Internal function. Get the row index in the stacked sample...

Description Usage Arguments Details Value

View source: R/batch_opt.R

Description

Internal function. Get the row index in the stacked sample matrices for the b^{th} batch

Usage

1
get.index.b(batch.size, b)

Arguments

batch.size

vector of batch sizes

b

the index of the batch of interest

Details

In the computation, samples from each batches are stacked be rows to form x.mat, as well as fx.mat, px.mat, qx.mat. To extract the samples from batch b and their corresponding fx, px, qx values, the indices for batch b will be needed. They can be obtained by calling get.index.b(batch.size, b)

Value

the row index or sample matrices of batch b for all b's in b.vec


optismixture documentation built on May 29, 2017, 1:02 p.m.

Search within the optismixture package
Search all R packages, documentation and source code