search for: cxn

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

Did you mean: can
2012 Oct 22
1
Matlab code to R code
Dear r-users, I would like to convert my Matlab code to R-code, however it dies not work as expected.  Hope somebody can help me to match Matlab and r codes. R code: rr <- function(r,cxn) { tol <- 1E-4; for(i in 1:n) { t1 <- (1+(i-1)*r)*log((1+(i-1)*r)) t2 <- (i-1)*(1-r)*log(1-r) rri <- ((t1+t2)/i*log(i))-cxn rr <- rri > tol } round(rr,4) } rr1 <- rr(0.5,0.0242) ; rr1 Matlab code: function F = cxncnr(r) n = 4; % terms t1 = (1+(n-1)*r)*log((1+(n-1)*r)); t2 =...
2010 May 17
1
sapply code
Hi r-users,   I have this code here, but I just wonder how do I use 'sapply' to make it more efficient lamda_cor <- eigen(winter_cor)$values   > lamda_cor [1] 1.3459066 1.0368399 0.8958128 0.7214407   lamda_cxn <- function(dt) { n       <- length(dt)   term    <- vector(length=n, mode="numeric")     for (i in 1:n)   { term[i] <- (dt[i]/n)*log(dt[i]/n) }     #sum(term)   cxn <- 1 + (1/log(n))*sum(term)   cxn } lamda_cxn(lamda_cor) > lamda_cxn(lamda_cor) [1] 0.01861457   Thank y...
2008 Oct 08
1
Troubleshooting ZFS performance with SIL3124 cards
...al 2m58.863s user 0m0.001s sys 0m10.636s gives me for this run a 8192/178 gives me around 46MBytes / second... That is really sucky speed for 12 drives. However this speed varies since the hangups seems to occur on random and for a random time. If you look at the output from iostat -cxn 1 below you find that the first one is okay but the second on the disks are in 100 %w... and it stays at 100 %w for a few seconds. us sy wt id 0 34 0 66 extended device statistics r/s w/s kr/s kw/s wait actv wsvc_t asvc_t %w %b device 0.0 0.0 0.0...
2001 Oct 15
2
OpenSSH Compatiblity Problems.
Not sure which list this should go to, so I'll include both. When I SSH from a 2.9.9p2 client to a OpenSSH 2.1.1 server, it often hangs at this point. It will hang there for days on end. If I open up 9 xterms and run that command, 2-3 will login. I have no problems using ssh1 (commercial). And openssh has no problems logging into newer servers > 2.1.1. Anyone know why this might be?
2009 Jul 23
1
[PATCH server] changes required for fedora rawhide inclusion.
...t;L45!)l2ap?VQw1Nl;w zc0S#k&VcSyS!dAgNy+qK{N}X7GNM{rV4AAY^@jfhm%{4}`$YVH`+lWms<VpkQbO2r zQN!)%<~lWjbhOEj4m41Et)zw6RYrw1M0FNpX`xPa*N`_jBka0Xv72bM&Kn|Yy%Dq# zBk20rP-=j6Ui1!c1Z_fe>)6$_CgH`N^Aaz>_$rE3P~vaB!F$n5ybjTAVy#FM5e;H% z7;%lu8oyJ>gM at Wkv`n{_sp52FwXRVBG|wgV0($G#QZImX6b(|3lcXNPtsxu~645uH zGQMe)4B<+A2q)c8>>W)yTStYiXz!v-I$B|wAaaXGq|d)3l99NNCL{6HUSg=5L%2kV zGLZUev^CEzbh%b<XWc5bDj8d;R;6MqsPg)0KLX~ydJExuxmm;Ms86x^iCS#FiRWsg z7_()uIb195rib_P&;f3)LD*WrI>36s2EazZCcsxnw;9hZfR6!HfCL~3NCCD2ssS~C zTEI5ICxGpM9e|yHT}E-YE5iqPXg4=M#rJN&9>Dv6y?}jy{RZ)~n}_!QE1dm2...