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.11892976 -0.008520174 -0.098282752 0.1007399113 -0.20001807
#> [2,] 0.13688317 -0.132506371 -0.077280624 0.1054156208 -0.04516212
#> [3,] -0.01659924 0.048166729 0.048095133 0.0578036534 0.14074868
#> [4,] -0.15148728 0.183873699 0.229015004 0.2274625902 -0.16162599
#> [5,] -0.07425595 -0.052516169 -0.034224265 -0.0502262305 -0.07041598
#> [6,] -0.20260249 0.066069061 0.168215516 -0.0372132970 0.17772857
#> [7,] -0.13616897 -0.048950972 -0.009683369 -0.0529908004 0.23797888
#> [8,] 0.12336331 -0.004303914 -0.329716377 0.0455160338 0.34631126
#> [9,] -0.29458685 0.055430079 0.039444221 0.0001882036 -0.19742173
#> [10,] 0.03046178 0.235652184 -0.114427709 0.0288640286 -0.06793834