dispersion: Obtain the eigenvalue spacings of a matrix or ensemble of...

Description Usage Arguments Value Examples

View source: R/dispersion.R

Description

Returns a vector of the eigenvalue spacings of a random matrix or ensemble.

Usage

1
2
3
4
5
6
7
dispersion(
  array,
  pairs = NA,
  norm_order = TRUE,
  singular = FALSE,
  pow_norm = 1
)

Arguments

array

a square matrix or matrix ensemble whose eigenvalue spacings are to be returned

pairs

a string argument representing the pairing scheme to use

norm_order

sorts the eigenvalue spectrum by its norms if TRUE, otherwise sorts them by sign

singular

return the singular values of the matrix or matrix ensemble

pow_norm

power to raise norm to - defaults to 1 (the standard absolute value); otherwise raises norm to the power of argument (beta norm)

Value

A tidy dataframe with the real & imaginary components of the eigenvalues and their norms along with a unique index.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# Eigenvalue dispersion of a normal matrix using the lower pair scheme
P <- RM_norm(N = 5)
disp_P <- dispersion(P, pairs = "lower")

# Eigenvalue dispersion of a stochastic matrix (using the consecutive pair scheme)
Q <- RM_stoch(N = 5)
disp_Q <- dispersion(Q)

# Eigenvalue dispersion of an normal matrix ensemble, ordering by sign instead of norm.
ens <- RME_beta(N = 10, beta = 2, size = 10)
disp_ens <- dispersion(ens, norm_order = FALSE)

RMAT documentation built on April 28, 2021, 9:06 a.m.