restRandMatGamma: 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. Deprecated, use restRandMat().

Usage

1
restRandMatGamma(original_mat, max_iter, shape, rate = 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

shape

parameter of the gamma distribution

rate

parameter of the gamma distribution

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.