search for: nind

Displaying 20 results from an estimated 23 matches for "nind".

Did you mean: kind
2006 Sep 19
1
Exc CB Search very little Question
...rder) > combinations of entries for the current sub-frame. You can simply > compute a one-bit checksum on all the codebook entries and choose > which of the N-best to use based on that and the "message" you have. So you're suggesting, I can either write into the stream: - nind[0][0..nb_subvect], or - nind[1][0..nb_subvect], or - nind[2][0..nb_subvect], or - ... Or do I have to do a little more hacking in the search function to get the N best _combinations_ of CB IDs? Wouldn't it be easier and just as effective (for N==2) to do the following: Get nb_subvect indeces t...
2015 Sep 04
0
getting a vector of unown size
...#include <stdlib.h> #include <math.h> double min(double a, double b) { if(a>b) return b; else return a; } double unirand() { return (rand()+1.0)/(RAND_MAX+1.0); } void RndSBDdemography(double *b, double *d, double *a, double *c, double *No, double *tmax, double *tiempo, double *Nind) { double tb, td, n; int bc=0; tiempo[0]=1.0; Nind[0] = *No; // This loop generates output of variable and a priori unknown size while (Nind[bc] >= 2 && tiempo[bc] <= *tmax) { bc = bc + 1; tb = -(1 / (*b - *a * Nind[bc-1])) * log(unirand()); td = -(1 / (*d + *c * Nind[bc-1])) * log(...
2009 Jul 23
3
How to pass a character argument which contains expressions to arg.names in barplot?
...utomatic way the argument in arg.names in a barplot. I generate the labels I want to appear below the bars with a for loop, and they contain subscripts, so I need to use expression anch<-0.05 esp<-4 for (i in 1:dim(Ntot)[1]) { naux<-Ntot[i,] naux2<-naux[naux>0] nind<-which(naux>0) tit4<-character(0) for (j in 1:length(nind)) { tit4<-c(tit4,paste("expression(n[paste[",i,",",nind[j],"])",sep="")) } windows() barplot(naux2,xlab=eval(expression(substitute(n[i],list(i=i)))), a...
2006 Sep 19
2
Exc CB Search very little Question
...rd. My goal is to make sure if nothing is embedded, the altered Speex version still needs to write exactly the same coefficients as the original non-stego version. For my scenario, I stick to NB encoding at 15kbps, so N is equal to 2. So all I can do, in my opinion, is to check if the LSBs of best_nind[0][i] and best_nind[1][i] (for each i in 0:nb_subvect) are different. The Problem is, that I would like to know how big the error is, which I introduce into the signal by this change. But in the end, I only know the ndist for all indexes of the last one of these nb_subvect indexes. (I could increas...
2010 Oct 08
3
Efficiency Question - Nested lapply or nested for loop
...3), G_hat_1_1=c(0.4545,0.062875,0.115875,0.102,0.724125,0.738125), G_hat_2_1=c(0.064625,0.937125,0.006875,0.00025,0.014375,0.238875), G_1=c(1,2,0,0,1,1)) # get list of inds in file (e.g. G_0,G_1,...,G_100) inds = grep("G_[0-9]+",names(data),perl=T,value=T) # get total number of inds nind = length(inds) # create an empty "confusion" table cmat = matrix(rep(0,9), nrow=3, ncol=3) colnames(cmat) = c("tru_rr", "tru_rv", "tru_vv") rownames(cmat) = c("call_rr","call_rv","call_vv") ## APPROACH 1: Nested For Loop ####...
2013 Feb 19
0
calcMin
...arguments. No partial matches to previous arguments that I can see. Anybody know the reason or fix for this? calcMin(pvec=data.frame(val=par,min=rep(.000001,length(par)),max=rep(100 0000,length(par)),active=rep(TRUE,length(par))),func=optimwrap2, resid=resid,caa=caa,na=na,vcode=vcode,maa=maa,ny=ny,nind=nind,qage=qage, selmod=selmod,oldagei=oldagei,vpaflag=vpaflag) Error in f(x, ...) : unused argument(s) (resid = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
2007 Nov 16
2
expand.grid overflows?
>cbn<-as.matrix(expand.grid( rep( list(0:1), 50))) Error in rep.int(rep.int(seq_len(nx), rep.int(rep.fac, nx)), orep) : invalid 'times' value In addition: Warning message: In rep.int(rep.int(seq_len(nx), rep.int(rep.fac, nx)), orep) : NAs introduced by coercion But I'm only interested in cbn matrix rows where: cbn<- cbn[rowSums(cbn)==5,] Is there a way to evaluate it
2006 Sep 18
2
Exc CB Search very little Question
...thin what? In cb_search, we iterate nb_subvect times over a codebook, finding nb_subvect codebook entries to quantize the excitation signal. After finding these nb_subvect codebook entries, they're written into the stream: /*save indices*/ for (i=0;i<nb_subvect;i++) { ind[i]=nind[0][i]; speex_bits_pack(bits,ind[i],params->shape_bits+have_sign); } I want to know if I'm correct in that I can just do sth like this without any effect on the encoded signal: /*put optimal values into array*/ for (i=0;i<nb_subvect;i++) { ind[i]=nind[0][i]; }...
2011 Jan 21
1
help! complete the reviewer's suggest: carry out GA+GP (gaussian process)!
...l paramets depicted above. GA: matlab GA toolbox (http://www.sheffield.ac.uk/acse/research/ecrg/gat.html) svm: libsvm (http://www.csie.ntu.edu.tw/~cjlin/libsvm/) now I want to know, how to get the predicted values : In libsvm for example: cmd = ['-v ',num2str(v),' -c',num2str(cgp(nind,1)), '-g ',num2str(cgp(nind,2)),' -p ',num2str(cgp(nind,3)),' -s 3']; model = svmtrain(train_y,train_data_best,cmd); train_pred = svmpredict(train_y,train_data_best,model); % get the predicted values for the training set I can get the train_pred, likewise I can get the tes...
2012 May 23
1
how a latent state matrix is updated using package R2WinBUGS
...1 [3,] 0 0 0 0 1 [4,] 0 0 0 0 0 [5,] 0 0 0 0 1 [6,] 1 1 1 0 0 [7,] 0 0 0 0 0 [8,] 0 0 0 0 1 [9,] 0 0 0 0 0 [10,] 0 0 0 0 0 model { # Priors and constraints for (i in 1:nind){ for (t in f[i]:(n.occasions-1)){ phi[i,t] <- mean.phi p[i,t] <- mean.p } #t } #i mean.phi ~ dunif(0, 1) # Prior for mean survival mean.p ~ dunif(0, 1) # Prior for mean recapture # Likelihood for (i in 1:nind){ # D...
2006 Sep 20
2
Denoiser level and AEC problem
...rd. My goal is to make sure if nothing is embedded, the altered Speex version still needs to write exactly the same coefficients as the original non-stego version. For my scenario, I stick to NB encoding at 15kbps, so N is equal to 2. So all I can do, in my opinion, is to check if the LSBs of best_nind[0][i] and best_nind[1][i] (for each i in 0:nb_subvect) are different. The Problem is, that I would like to know how big the error is, which I introduce into the signal by this change. But in the end, I only know the ndist for all indexes of the last one of these nb_subvect indexes. (I could increas...
2012 Jan 27
0
Error in JAGS, cannot monitor z
...ed in the code: Initializing model |++++++++++++++++++++++++++++++++++++++++++++++++++| 100% Error in jags.samples(model, variable.names, n.iter, thin, type = "trace", : Failed to set trace monitor for z Node not found The code is: model { # Priors and constraints for (i in 1:nind){ for (t in f[i]:(n.occasions-1)){ phi[i,t] <- alpha[t] p[i,t] <- beta[t] } #t } #i for (t in 1:n.occasions-1) { alpha[t] ~ dbeta(1, 1) # Prior for mean survival beta[t] ~ dbeta(1, 1) # Prior for mean recapture } # Prior for...
2003 Dec 30
1
nbp hell
...it testing with an XP box. Everything seemed groovy. Today I went to put it into "production" and Win98 clients were having all sorts of problems. eth2 is the system's "default" interface. eth1 is used for netatalk, and eth2 for samba. I have used the interfaces and nind interfaces only options in smb.conf. After more hairpulling, I did a packet capture on a hub with the Win98 client. It seems that the client does an nbp query. My server responds, but the response comes from eth2, not eth0! Despite the packet's payload having the correct information (tha...
2002 Jul 02
0
error in plot residuals in a glm with iterations.
Hi, I make this model: > moths.m6 <- glm(nind~metros+especie+habitat+metros:habitat+habitat:especie,family=poisson) > anova(moths.m6,test="F") Analysis of Deviance Table Model: poisson, link: log Response: nind Terms added sequentially (first to last) Df Deviance Resid. Df Resid. Dev F Pr(>F) N...
2006 Sep 18
2
Exc CB Search very little Question
Hello, just to make sure I haven't gotten anything wrong: In cb_search.c (function split_cb_search_shape_sign) after all that searching nb_subvect CB entries are being written into the stream. These are all taken from the same codebook. If I wanted to, I could just change their order, couldn't I? Because important is only the linear combination of them all together, which I keep
2007 Jun 24
2
matlab/gauss code in R
...hich has the same similar as > my usual datasets. I did not try to implement the changes proposed by > Hadley, hoping that a solution can be found using the original dataset. > > ######### My code > > # Creating dataset > > nPts<-10 # number of time points > nInd<-6 # number of individuals > nModel<-3 # number of models > > TimePts<-rep(1:nPts,nInd*nModel) # > creates the "Time" column > Coef<-rep(rnorm(6,0.1,0.01),each=nPts,nModel) # Creates a > vect...
2009 Dec 04
2
Installing RandomForest on SuSe Linux - warnings
...s-unwind-tables -c rf.c -o rf.o rf.c: In function ?classRF?: rf.c:97: warning: ?oobpair? may be used uninitialized in this function rf.c:98: warning: ?strata_size? may be used uninitialized in this function rf.c:98: warning: ?strata_idx? may be used uninitialized in this function rf.c:97: warning: ?nind? may be used uninitialized in this function rf.c:89: warning: ?nstrata? may be used uninitialized in this function rf.c:92: warning: ?nclts? may be used uninitialized in this function gfortran -fpic -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous...
2002 Jul 12
0
Warnings in plot(model)
Hi all, I try to make a residuals plot in a model, but the warnings occur. > anova(m2) Analysis of Deviance Table Model: Negative Binomial(5.6937), link: log Response: nind Terms added sequentially (first to last) Df Deviance Resid. Df Resid. Dev P(>|Chi|) NULL 81 270.242 metros 1 0.005 80 270.237 0.943 habitat 7 92.843 73 177.395 3.222e-17 especie 1 6.84...
2008 Dec 05
3
MIGRATE SHARES always fails
Hi, I have an Ubuntu 8.04 box running as Samba PDC (version 3.0.28a) with an LDAP backend, and I tried to migrate a share from a Win2003 server to the Samba box. However, running the "migrate shares" or the "migrate files" commands always results in errors: $ net rpc share MIGRATE SHARES data_share -S w2k3box -U <admin> --destination=localhost migrating:
2009 Jun 29
2
CentOS and Redhat Directory Server
I have implemented LDAP on CentOS successfully using Redhat's Directory Server and the great how-to on the CentOS wiki. Being new to LDAP, I have a question and maybe one of you guys can point me in the right direction: I have LDAP implemented on the network for logins to the workstation pcs. I also have an apache website that I now use LDAP for authentication. What I want, however, is