search for: arrayb

Displaying 2 results from an estimated 2 matches for "arrayb".

Did you mean: array
2006 Apr 08
7
text_field and arrays
Hi, I''m trying to do a bulk update on an array with the helper text_field. I''m trying to create an inputfield for every object in the array, but I''m not getting it right... example: class ClassA @arrayB[] end HTML (code with error): <% 0.upto(9) do |index| %> <%= text_field ''ClassA'', ''arrayB[index]'' %> non working alternative: <%= text_field ''ClassA[arrayB][]'', ''index'' %> Thanks in advance, Bas -- Poste...
2012 Mar 28
1
resampling for correlation and testing
...n B matrix. Some example code: A<-matrix(rnorm(100), ncol=10) B<-matrix(rnorm(100), ncol=10) rho.A<-cor(A) { idx<-sample(1:10, 10) idx # [1] 8 4 5 7 1 9 2 10 6 3 rho.B<-cor(B[,idx]) } ## repeat this x time (currently 500) ## in essence we then have the following : rho.arrayB<-array(runif((10*10)*500), dim=c(10,10,500)) ## Then test if rho.A[1,1] come from the distribution of rho.B[1,1] pvalueMat[1,1]<-wilcox.test(rho.array[1,1,] , rho.A[1,1])$p.value However, my array size would be 2300 x 2300 x 500 which R won't let me even make as an empty structure. Any...