generate_random_integer_Gamma: Generate a random Gamma matrix containing only integers

View source: R/generate_examples.R

generate_random_integer_GammaR Documentation

Generate a random Gamma matrix containing only integers

Description

Generates a random variogram Matrix by producing a \d1xd1 matrix B with random integer entries between -b and b, computing S = B %*% t(B), and passing this S to Sigma2Gamma(). This process is repeated with an increasing b until a valid Gamma matrix is produced.

Usage

generate_random_integer_Gamma(d, b = 2, b_step = 1)

Arguments

d

Number of rows/columns in the output matrix

b

Initial b used in the algorithm described above

b_step

By how much b is increased in each iteration

Value

A numeric \dxd variogram matrix with integer entries

See Also

Other example generation functions: generate_random_Gamma(), generate_random_chordal_graph(), generate_random_graphical_Gamma(), generate_random_model(), generate_random_spd_matrix()

Examples


generate_random_integer_Gamma(5, 2, 0.1)


graphicalExtremes documentation built on Nov. 14, 2023, 1:07 a.m.