search for: corr1

Displaying 5 results from an estimated 5 matches for "corr1".

Did you mean: corr
2013 Jan 07
0
Something wrong with echo_diagnostic.m
...printf ('This is too much delay, try delaying the far-end signal a bit\n'); else if (b < 0) printf ('You have a negative delay, the echo canceller has no chance to cancel anything!\n'); else printf ('Delay looks OK.\n'); end disp(N/2); N2= round(N/2); corr1= real(ifft(fft(rec(1:N2)).*conj(fft(play(1:N2))))); corr2= real(ifft(fft(rec(N2+1:end)).*conj(fft(play(N2+1:end))))); [a,b1] = max(corr1); if b1 > N2/2 b1 = b1-N2; end [a,b2] = max(corr2); if b2 > N2/2 b2 = b2-N2; end drift = (b1-b2)/N2; printf ('Drift estimate is %f%% (%d...
2010 Mar 10
3
Help with aggregate and cor
...s of variables, v1, o1, v2, o2, etc, observed every 30 seconds. What I would like to do is compute the correlation matrix, but not for all my data, just for, say 5 minutes or 1 hour chunks. In sql, what I would say is select id, date_trunc('hour'::text, ts) as tshour, corr(n1,o1) as corr1 from raw30s where id = 1201087 and (ts between 'Mar 1, 2007' and 'Apr 1, 2007') group by id,tshour order by id,tshour; I've pulled data from PostgreSQL into R, and have a dataframe containing a timestamp column, v, and o (both numeric). I created an g...
2012 Sep 27
1
List of Variables in Original Order
...relations between one variable and several others. I wanted to print a table where the odd-numbered rows contain the variable names and the even-numbered rows contain the correlations. So if VarA is correlated with all the variables in mydata.df, then it would look like var1 var2 var3 corr1 corr2 corr3 var4 var5 var6 corr4 corr5 corr6 . . etc. I tried using a matrix for the correlations and another one for the variable names. I built the correlation matrix using x = matrix(format(cor(mydata.df[,1],mydata.df[,c(2:79)]),digits=4),nc=3) and the variable na...
2012 Aug 08
0
Testing for a second order factor using SEM package
...4 <-> pRU6, corp2 pRU5 <-> pRU6, corp3 pRU6 <-> pRU2, corp4 rRU1 <- rRU, sdfsdf rRU2 <- rRU, lam32 rRU3 <- rRU, lam33 rRU4 <- rRU, lam34 rRU5 <- rRU, lam35 rRU6 <- rRU, lam36 rRU7 <- rRU, lam37 rRU8 <- rRU, lam38 rRU <-> rRU, mak1 rRU3 <-> rRU1, corr1 rRU7 <-> rRU4, corr2 rRU8 <-> rRU7, corr3 rRU8 <-> rRU2, corr4 rRU5 <-> rRU2, corr5 rRU7 <-> rRU5, corr6 rRU8 <-> rRU5, corr7 sRU <-> pRU, tmp1 sRU <-> rRU, tmp2 pRU <-> rRU, tmp3 sRU <- sof, lok1 pRU <- sof, lok2 rRU <- sof, lok3 sof &...
2012 Dec 03
4
How to calculate the spatial correlation of several files?
dir1 <- list.files("C:\\Users\\aalyaari\\Desktop\\cor", "*.bin", full.names = TRUE) dir2 <- list.files("C:\\Users\\aalyaari\\Desktop\\cor2", "*.bin", full.names = TRUE) results <- list() for (.files in dir1){ # read in the 365 files as a vector of numbers for dir1 file1 <- do.call(rbind,(lapply(.files, readBin ,