Learn R Programming

futile.matrix (version 1.2.7)

rmatrix: Generation of random matrices

Description

Generate various types of random matrices

Arguments

model

The matrix model to use, which includes the size of the matrix. The model argument must be of type RandomMatrixModel. Numerous sub-types (e.g. WignerModel, WishartModel) are supported generating the appropriate type of random matrix.

Usage

rmatrix(model)

rmatrix(model)

rmatrix(model)

rmatrix(model)

Details

Used to generate a random matrix from various families. The idea is to specify a model, which is then used to generate random realizations and also to compute other properties of the matrix.

See Also

dmatrix

Examples

Run this code
# NOT RUN {
model <- WignerModel(10)
m <- rmatrix(model)

# }
# NOT RUN {
e <- Ensemble(20, model)
hist(max_eigen(e), freq=FALSE)
# }

Run the code above in your browser using DataLab