restRandMat: Generate random variation of a matrix keeping rows and cols...

Description Usage Arguments Value

View source: R/RcppExports.R

Description

Generate random variation of a matrix keeping rows and cols sums

Usage

1
restRandMat(original_mat, max_iter, type, par1 = 1, par2 = 1)

Arguments

original_mat

the original matrix that will be replicated

max_iter

maximum number of iterations when coverging to the rows and cols sums

Value

numeric matrix with the same dimensions and (almost) rows' and columns' sums as the input matrix


vh-d/RPortfolioSimilarity documentation built on Oct. 17, 2019, 3:11 a.m.