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.028254380 -0.11520686 0.02249378 -0.29765061 0.303494622
#> [2,] 0.059065317 -0.04623010 -0.05011201 0.15465042 0.004367874
#> [3,] -0.165571146 0.03482290 -0.01385694 0.01591862 0.250286393
#> [4,] 0.028756481 -0.07391046 -0.13377437 0.04814680 -0.196196497
#> [5,] 0.149654489 -0.07203957 0.04823676 0.12295384 0.145011550
#> [6,] 0.006452426 -0.18308411 0.29332596 0.03656440 -0.202819288
#> [7,] 0.016606477 0.03161400 0.16682031 0.20912053 0.224575666
#> [8,] 0.086163760 0.18462606 -0.01228966 0.23479612 0.043267053
#> [9,] 0.148692255 0.09515577 -0.12262399 -0.22230304 0.089424632
#> [10,] 0.053544438 0.11718586 0.01304331 -0.19787995 0.079531337