Displaying 2 results from an estimated 2 matches for "matsize".
Did you mean:
  mapsize
  
2008 Jun 21
1
converting an R function into VBA
Hi everyone,
I want to convert an R function into VBA for calculating the eigenvectors and eigenvalues of a matrix using the "Power Method". The function is:
PowerMethod <- function(x, tolerance) {
    my.mat <- var(x[,-1], na.method="available")
    matSize <- dim(my.mat)[1]
    eigenVec <- matrix(NA, nrow=matSize, ncol=matSize)
    eigenVal <- rep(NA, matSize)
    for(j in 1:matSize) {
        x <- rep(1, matSize)
        yk <- x + tolerance + 1
         while(all(x-yk<tolerance)) {
            yk <- my.mat%*%x
            beta &...
2011 Nov 29
3
fill binary matrices with random 1s
Dear all, I am finding difficulty in the following, I would like to 
create an empty matrix e.g. 10x10 of 0s and sequentially fill this 
matrix with randomly placed a 1s until it is saturated. Producing 100 
matrices of sequentially increasing density., This process needs to be 
randomized 1000 times., I assume i should run this along the following 
lines, 1) Create 1000 matrices all zeros, 2) add