R/anglemanise_utils.R
get_dstat.Rd
Computes the mean and standard deviation of the correlation matrix using the
big_apply
function.
get_dstat(corr_matrix)
An FBM
object.
A list with statistical measures including mean
, sd
,
var
, sn
, min
, and max
.
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.0341
#> $ var : num 0.205
#> $ sd : num 0.453
#> $ sn : num 13.3
#> $ min : num -1.2
#> $ max : num 1.4
result
#> $mean
#> [1] 0.03414
#>
#> $var
#> [1] 0.2048673
#>
#> $sd
#> [1] 0.4526227
#>
#> $sn
#> [1] 13.25784
#>
#> $min
#> [1] -1.2
#>
#> $max
#> [1] 1.4
#>