This function computes the Frobenius normalization of a matrix.
Examples
dat <- matrix(rnorm(50),ncol=5,nrow=10)
frobNorm(dat)
#> [,1] [,2] [,3] [,4] [,5]
#> [1,] 0.12611366 -0.03994392 -0.02210942 -0.10088968 0.071159506
#> [2,] -0.14482014 0.12791232 -0.07526930 0.23057498 0.098108033
#> [3,] -0.06309414 0.20133734 0.16767561 0.12224976 0.065719541
#> [4,] 0.15924838 0.05226260 0.21806804 -0.10664348 0.097365531
#> [5,] 0.21323387 0.09708964 -0.02347251 -0.20713282 -0.146248072
#> [6,] 0.31030186 -0.05161343 -0.41167697 -0.00833653 0.044986124
#> [7,] -0.17689385 -0.14395779 0.05518103 -0.12474565 0.072390698
#> [8,] -0.06087412 0.08719018 -0.08422075 0.19868670 0.065210237
#> [9,] -0.19504383 0.08273200 0.08169751 -0.16691854 -0.145442971
#> [10,] 0.18140479 0.03253448 0.07191459 -0.06780522 0.004377078
