search for: index1

Displaying 20 results from an estimated 54 matches for "index1".

Did you mean: index
2014 Jan 27
4
Perl Search::Xapian
Hi, Trying to learn Search::Xapian and be better at perl at the same time, I'm stuck, at the DB_CREATE_OR_OPEN error. Perl says this: ~/dev/sandbox/Xapian-perl$ ./Index1-Xap.pl 100-objects-v1.csv db "db" is not exported by the Search::Xapian module Can't continue after import errors at ./Index1-Xap.pl line 7. BEGIN failed--compilation aborted at ./Index1-Xap.pl line 7. What I did was try to convert the python example code in to Perl. There's prob...
2011 Apr 03
1
Help in splitting ists into sub-lists
...ents being 4 matrices based on an logical index vector. is there a way to simplify what I'm doing to obtain the results in "mylist2"? I'd like something that would work on an arbitrary number of elements in "mylist". mylist <- list(matrix(1:9,3,3), matrix(10:18,3,3)) index1 <- c(TRUE,FALSE,TRUE) index2<- c(FALSE,TRUE,TRUE) mylist2 <- list(mylist[[1]][,index1], mylist[[1]][,index1==FALSE], mylist[[2]][,index2], mylist[[2]][,index2==FALSE]) Thanks in advance, Axel. [[alternative HTML version d...
2007 Jun 07
0
Unique :key not maintained after add_indexes?
Hi, When adding an index to another one using add_indexes I get duplicates even though I use the :key attribute. For example: def test_add_indexes_uniqueness index1 = Ferret::Index::Index.new(:key => :id) index2 = Ferret::Index::Index.new(:key => :id) # Add two items with same id index1 << {:id => 23, :data => "This is the data..."} index1 << {:id => 23, :data => "This is the new dat...
2009 Dec 28
1
nls error message
When I try to run the following non-linear regression with variables index1 and prl3: > beta = 4 > nls(index1~beta*(1/prl3),start = list(beta = 4)) I get this error message: Error in nls(index1 ~ beta * (1/prl3), start = list(beta = 4)) : REAL() can only be applied to a 'numeric', not a 'logical' I've got no clue as to the REAL() to which t...
2005 Jun 26
4
Mixed model
...;, na.strings="NA", dec=".", strip.white=TRUE) attach(Dataset) require (nlme) with(Dataset, table(runnb, id, grp)) b.lvls <- table(Dataset$runnb) nb <- length(b.lvls) fit <- vector(mode="list", nb) for(i in 1:nb) fit[[i]]<- lme (trans1 ~ Index1 + grp, random = ~ 1 | id / grp , data = Dataset, na.action = "na.exclude") This (above) worked OK only I am having memory problems. I have a gig of RAM set at --sdi --max-mem-size=512M (complete version below) I am wondering if running the...
2006 Nov 14
2
Problem with file size
Hi everyone, I have 2 environments (2 different R sessions) as described below: Session 1: Name of the environment: "CrlmmInfo" Objects in the environment: index1: logical index - length 238304 index2: logical index - length 238304 priors: list of 4 - (matrix 6x6, 2 vectors of length 6, vector of length 2) - all num params: list of 4: centers [238304 x 3 x 2]: num scales [238304 x 3 x 2]: num N [238304 x 3]: num...
2006 Nov 14
2
Problem with file size
Hi everyone, I have 2 environments (2 different R sessions) as described below: Session 1: Name of the environment: "CrlmmInfo" Objects in the environment: index1: logical index - length 238304 index2: logical index - length 238304 priors: list of 4 - (matrix 6x6, 2 vectors of length 6, vector of length 2) - all num params: list of 4: centers [238304 x 3 x 2]: num scales [238304 x 3 x 2]: num N [238304 x 3]: num...
2020 Oct 14
0
which() vs. just logical selection in df
Inline. Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Wed, Oct 14, 2020 at 3:23 PM 1/k^c <kchamberln at gmail.com> wrote: Is which() invoking c-level code by chance, making it slightly faster > on average? > You do not need
2012 Apr 01
1
Degrees of Freedom for lme.
Hi, I am trying to run a linear mixed effect model on data. I have 17 longitudinal subjects and 36 single subjects, and this is the code I'm using (below). So, INDEX1 is the column with brain volumns, and the predictors are gort and age, by time ID (time they were seen). I believe my data is set up the right way, but when I run it, I get DF for Intercept is 49, and DF for slope is 13? Why? lme.gort=lme(Volume ~ GORT_FLUENCY+AGE, random = ~ 1 | TIMEID, da...
2015 Apr 16
3
[LLVMdev] double* to <2 x double>*
...yidx1, align 4, !tbaa !0 Value *loadValue = pInst->getOperand(0); Type *vecTy = VectorType::get(Type::getDoublePtrTy(currF->getContext()), 2); Value *emptyVec = UndefValue::get(vecTy); Type* u32Ty = Type::getInt32Ty(currF->getContext()); Value *index0 = ConstantInt::get(u32Ty, 0); Value *index1 = ConstantInt::get(u32Ty, 1); Instruction *InsertVal = InsertElementInst::Create(emptyVec, loadValue, index0, ""); InsertVal = InsertElementInst::Create(emptyVec, loadValue, index1, ""); InsertVal->insertBefore(pInst); It turned out that the way I am doing is not right bec...
2009 Jan 27
1
Problem with RMA using limma, oligo and pdInfoBuilder packages
...test) [1] "GeneFeatureSet" attr(,"package") [1] "oligoClasses" > class(phenoData) [1] "standardGeneric" attr(,"package") [1] "methods" > eset <- rma(test) Background correcting Normalizing > e <- exprs(eset) > index1 <- 1:5 > index2 <- 6:10 > d <- rowMeans(e[, index1]) - rowMeans(e[, index2]) > design <- model.matrix(~factor(eset$Key)) > fit <- lmFit(eset, design) > ebayes <- eBayes(fit) > sample <- row.names(ebayes) > Pvalue <- ebayes$p.value[,2] > Mean1...
2010 May 05
3
concatenate values of two columns
Dear list, I'm trying to concatenate the values of two columns but im not able to do it: i have a dataframe with the following two columns: X VAR1 VAR2 1 2 2 1 3 2 4 3 5 4 6 4 what i would like to
2020 Jan 09
3
LLD PDB Lines zero number issue
...il to do the source-level debug on the executable. This issue is same in both Linux and Windows, and I figure out a simple case in Linux to reproduce this issue as below. Please help to give us some advices on how to solve the zero Lines issue. $ cat main.c void assembly_fun(); int main() { int Index1; for (Index1 = 0; Index1 == 0; assembly_fun(), Index1++){ assembly_fun(); } assembly_fun(); } $ cat assembly.nasm DEFAULT REL SECTION .text global assembly_fun assembly_fun: ret $ cat makefile_clanglto_Oz CC_FLAGS= -g -m64 -mcmodel=small -target x86_64-unknown-windows -gcodev...
2012 Jun 28
3
Storing results in a single file after looping over all files
...0???? 1.5?? NA?? 0.9 3??? 1???? 0.1?? 0.2?? 1.5 ...... .. My code is as follows: files <- list.files(pattern="*.raw") for(i in files){ of <- strsplit(i, "\\.")[[1]] of <- paste(head(of, 1)) data <- read.table(file=i, header=T) y<-data$PHI num<-length(y) index1<-c(1:num_sample)[y==1] index2<-c(1:num_sample)[y==0] gen<-as.matrix(data[,-c(1:2)]) source("pcc.R") # a function for my use out<- fpc_func(gen,num,index1,index2) out1<-as.data.frame(out) id1<-data[,2] id<- as.data.frame(iid1) out2<-cbind(iid1,out1) colnames(out2)...
2010 Apr 19
2
Acceder a varias tablas
Buenas, He creado dos andamios para dos tablas a la que accedo por index1 e index2 respectivamente. En cada index puedo hacer las tareas de aƱadir, borrar, ver lineas... pero me gustaria saber como se hace una busqueda mas compleja...es decir si tengo una tabla Productos y otra tabla descripciones y quiero mostrar en los productos con sus descripciones... he intentado en...
2016 Mar 16
2
match and unique
Is the phrase "index <- match(x, sort(unique(x)))" reliable, in the sense that it will never return NA? Context: Calculation of survival curves involves the concept of unique death times. I've had reported cases in the past where survfit failed, and it was due to the fact that two "differ by machine precision" values would sometimes match and sometimes not,
2015 Mar 26
0
Lazy_expunge issue...
...========== root at gold:# doveadm user -u testimap2.csia at unipd.it userdb: testimap2.csia at unipd.it uid : 1003 gid : 1003 home : /SYSTEM/USERS/homes/unipd.it/t/testimap2.csia at unipd.it mail : sdbox:/NAS1/unipd.it/mailbox/t/testimap2.csia at unipd.it/sdbox:INDEX=/INDEX1/unipd.it/t/testimap2.csia at unipd.it:ALT=/ALTSTORAGE1/unipd.it/t/testimap2.csia at unipd.it ------------------------------- Here follows IMAP transaction in and out from rawlog IN: 2 ENABLE QRESYNC 3 NAMESPACE 4 LIST () "" (extern/*) 5 DELETE extern 6 UNSUBSCRIBE extern 7 DELETE extern...
2009 Aug 07
0
Bar plots with stacked columns marked with askterisks
...ch follow certain criteria. I've gotten the stacked bar plots with Data set A (please refer to code below). However, I haven't figured how to put asterisks on columns based on some extra information (such as "used/unused") as in Data set B i.e. asterisks at the top of the Index1 and Index3 columns. ---- R code ---- title = 'frequency' filename = 'testdata2.txt' sample_output = 'sequences' # read in data my.data <- read.delim(filename, sep="\t") # data from second column onward my.dataM <- my.data[,2:ncol(my.data)] # rownames in fir...
2015 Mar 06
2
[LLVMdev] Optimizing out redundant alloca involving byval params
...what? This doesn't appear to be a pass in ToT. Are you using an older version of LLVM? If so, none of my comments will apply. > > define void @main(%struct* byval %ptr) { > %val.index = getelementptr %struct* %ptr, i32 0, i32 0 > %val.field = load i32* %val.index > %val.index1 = getelementptr %struct* %ptr, i32 0, i32 1 > %val.field2 = load i32* %val.index1 > %val.ptr = alloca %struct > %val.ptr.index = getelementptr %struct* %val.ptr, i32 0, i32 0 > store i32 %val.field, i32* %val.ptr.index > %val.ptr.index4 = getelementptr %struct* %val.ptr, i3...
2008 Mar 12
0
R code for kernel density using kd-tree, looking for speed up
...r.limit)/2; tree$diameter = get.diameter(box.lower.limit, box.upper.limit); ######################################################## #preparing for the left and right tree diff = box.upper.limit - box.lower.limit; split.dim = which.max(diff); split.mean = tree$center[split.dim] index1 = (points[split.dim,] < split.mean); leftPoints = points[,index1,drop=F]; rightPoints = points[,!index1, drop=F]; tree$left = addNode(newtree(), leftPoints); tree$right = addNode(newtree(), rightPoints); return(tree); } evaluate.element.obj = function(target.element, bw) {...