Computes the mean and standard deviation of the correlation matrix using the big_apply function.

get_dstat(corr_matrix)

Arguments

corr_matrix

An FBM object.

Value

A list with statistical measures including mean, sd, var, sn, min, and max.

See also

Examples

s_mat <- Matrix::rsparsematrix(nrow = 10, ncol = 5, density = 0.3)
# Convert the sparse matrix to an FBM using your function
fbm_mat <- sparse_to_fbm(s_mat)
result <- get_dstat(fbm_mat)
str(result)
#> List of 6
#>  $ mean: num 0.0731
#>  $ var : num 0.214
#>  $ sd  : num 0.463
#>  $ sn  : num 6.33
#>  $ min : num -0.91
#>  $ max : num 1.8
result
#> $mean
#> [1] 0.07312
#> 
#> $var
#> [1] 0.2144985
#> 
#> $sd
#> [1] 0.4631399
#> 
#> $sn
#> [1] 6.33397
#> 
#> $min
#> [1] -0.91
#> 
#> $max
#> [1] 1.8
#>