search for: mode1

Displaying 11 results from an estimated 11 matches for "mode1".

Did you mean: mode
2011 Jul 30
3
ifelse returns
Greetings R Community, I am working with the ifelse function and it is returning something unexpected. In the code the line with the MODE1 assignment the output is a vector [1] 4 5 6 but when I put the MODE1 object into the ifelse function [R}'s output for MODE1 is the first number from the string (4). Why is this? Given the supplied vector of x I would assume both the MODE1 and ifelse() lines to return the same result. I woul...
2003 Jun 23
2
Summary for mode of a data set
Dear R People: thank you for the many helpful sets of code that I received!!! I combined several of the concepts for the following function: > mode1 function(x) { y <- rle(sort(x)) z <- y$values[y$lengths==max(y$lengths)] return(z) } > xm [1] 22 15 10 30 25 26 2 17 28 2 24 6 26 24 5 22 20 14 > mode1(xm) [1] 2 22 24 26 > This will pick up multiple modes. Again thanks to all who helped! S...
2006 Oct 21
2
problem with mode of marginal distriubtion of rdirichlet{gtools}
...a_i - n)$; The means are $a_i / (\sum_{i} a_i ) $; I tried to study the above properties using rdirichlet from gtools. The code are: ############## library(gtools) alpha = c(1,3,9) #totoal=13 mean.expect = c(1/13, 3/13, 9/13) mode.expect = c(0, 2/10, 8/10) # this is for the overall mode. mode1 = numeric(3); mode2 = numeric(3); theta = data.frame( rdirichlet( 10000, alpha) ) m1 = mean(theta) for( i in 1:3) { h = hist(theta[,i], breaks=20); mode1[i]= h$mid[ h$density == max(h$density) ] } theta = data.frame( rdirichlet( 10000, alpha) ) m2 = mean(theta) for( i in 1:3) { h = hist(theta...
2003 Jun 23
0
A final global mode function
...3,3,3,3,5,5,5,6,7) >>modes(x2) > > [1] 1 3 7 > > Ravi. > > ----- Original Message ----- > From: Spencer Graves <spencer.graves at pdf.com> > Date: Monday, June 23, 2003 2:53 pm > Subject: Re: [R] Summary for mode of a data set > > >>Your "mode1" function will identify multiple modes only if they >>have the >>same number of observations. Consider the following: >> >> >>>x2 <- c(2, 1,1, 3,3,3) >>>mode1(x2) >> >>[1] 3 >> >>Here, "mode1" did not identify th...
2012 Dec 18
1
multi dimensional optim problem
I am attempting to use optim to solve a neural network problem. I would like to optimize coefficients that are currently stored in a matrix Y=270 x 1 X= 27- x 14 b1= 10x14 b2= 11x1 V= 10 x 14 set of prior variances. I have the following function: posterior.mode1=function(y,X,b_0,b2,V) { log.like=function(b1) { a_g=compute(b1) z_g=tanh(a_g); z_g=cbind(1,z_g) p=softmax(z_g%*%b2); a=sum(y*log(p)+(1-y)*log(1-p)); return(a); } compute=function(b1) { a_g=NULL; for(i in 1:nrow(b1)){ a_g=cbind(a_g,X%*%b1[i,]) }...
2001 Aug 24
3
statistical mode function
Hello R-users, I am aware that this is a very basic question, but still... Since mode() function is reserved for something else, is there a function to calculate statistical mode for a vector or a matrxi? i.e. mode.function(c(1,2,2,2,3,3))=2 Thanks in advance, Elena Moltchanova Elena MOLTCHANOVA IIASA International Institute for Applied Systems Analysis A-2361 Laxenburg, Austria E-Mail:
2010 Jan 13
2
Bonding modes
...nded interface running in mode 1 which is active/passive and no issue with this. I need to change it to mode 0 for active/active setup. Does mode 0 is dependent on the switches configuration? My setup is: 2 links from bonded interface is connected to different switches. When I change to mode0 from mode1 , bond0 is not coming up. These are the steps I performed 1) changed to options bond0 mode=0 miimon=100 from options bond0 mode=0 miimon=100 2) modprobe bonding 3) service network restart Thanks ! Paras. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://...
2003 Jun 18
3
ext3 2.4.21 htree tests
...uffSize=2048kB, MaxMultSect=16, MultSect=16 DblWordIO=no, OldPIO=2, DMA=yes, OldDMA=0 CurCHS=4047/16/255, CurSects=-217054981, LBA=yes, LBAsects=160086528 tDMA={min:120,rec:120}, DMA modes: mword0 mword1 mword2 IORDY=on/off, tPIO={min:120,w/IORDY:120}, PIO modes: mode3 mode4 UDMA modes: mode0 mode1 mode2 mode3 mode4 *mode5 mode6 [ct_sys@installed TEST]# hdparm /dev/hda /dev/hda: multcount = 16 (on) I/O support = 0 (default 16-bit) unmaskirq = 0 (off) using_dma = 1 (on) keepsettings = 0 (off) nowerr = 0 (off) readonly = 0 (off) readahead = 8 (on) geomet...
2013 Mar 31
1
Rock Ridge for core/fs/iso9660
...a flag, whether Rock Ridge is enabled, and by a skip length variable. The latter has not been tested with non-zero values, because i actually never saw an ISO image with such a skip length. (Maybe it has something to do with ISO 9660 on CD-ROM XA. Normal runs of cdrecord or libburn produce CD-ROM Mode1.) ---------------------------------------------------------------- This all compiles now in syslinux from git on a Debian 6 system. It has no "upx" and apt-file search does not find any. At the end there are complaints by ls about missing win32/syslinux.exe and win64/syslinux64.exe. Bu...
2007 Jan 18
16
5.1 surround channel coupling
It obviously would be nice to have such a mode available, for e.g. DVD audio compression. Apparently, the list doesn''t tell me too much about it. My questions are: 1. What is the current status of the 5.1 channel coupling in Vorbis? 2. If I''ll be interested in participation in its development, what is the recommended reading? -------------- next part -------------- An HTML
2006 Jun 09
3
FXO registration and VegaStream
I am trying to configure a VegaStream 50 FXO to work with asterisk. The problem that I am having is that the VegaStream does not support incoming registration from asterisk. VegaStream only allows outbound registration. My question is does asterisk allow incoming registration from an FXO? If yes how? Or better yet, has anybody been able to make the VegaStream FXO work with asterisk? According