build_random_matrix: Build a matrix of missing indices

Description Usage Arguments Details Value

View source: R/boot_fclust.R

Description

Build a matrix of indices of elements hat will be ommitted, randomly drawn among a whole set of elements.

Usage

1
2
build_random_matrix(nbIter = 1, seed = NULL,
                    rm.number = 0, rm.number.max = 0)

Arguments

nbIter

an integer, that indicates the number of random drawing to do.

seed

an integer, that fixes a seed for random drawing.

rm.number

an integer, that indicates the number of elements to randomly remove.

rm.number.max

an integer, that indicates the maximum number of elements among which the elements to remove are randomly drawn.

Details

Each line (each set of indices) of the matrix is unique, different from other lines of the matrix.

Value

a matrix of indices, of dimensions nbIter * rm.number.


functClust documentation built on Dec. 2, 2020, 5:06 p.m.