Learn R Programming

MPkn (version 0.1.0)

radekW: The Numbers of Rows of the Output Matrix

Description

The numbers of rows of the output matrix. These numbers are determined by the vectors of n and k.

Usage

radekW(n, k)

Arguments

n

An integer vector cumulative number of individual process steps. n[1] > 0, n[i] > n[i-1].

k

A vector of 0 and 1 identifying the mode of calculation in the stretch step. k[i] = 1 for rn[j] = rn[j-1]+1, k[i] = 0 for rn[j] = 2*rn[j-1], where rn[j] is the j-th row name of the output value matrix.

Value

Matrix size n[length(n)] x 1. The values of the rows of the matrix are the numbers of steps of the chain.

Examples

Run this code
# NOT RUN {
  radekW(n = c(3, 5, 8, 9, 11), k = c(1, 0, 1, 0, 0))
# }

Run the code above in your browser using DataLab