search for: l2

Displaying 20 results from an estimated 1410 matches for "l2".

2009 May 01
1
integrate with large parameters
Dear R-users, i have to integrate the following function `fun1` <- function (a, l1, l2) { exp(log(l1) * (a - 1) - l2 * lgamma(a)) } but if l1 is large, i get the "non-finite function value" error, so my idea is to rescale with exp(-l1) `fun2` <- function (a, l1, l2) { exp(log(l1) * (a - 1) - l2 * lgamma(a) - l1) } but it seems this doesn't solve the problem,...
2012 Nov 27
2
Stuck trying to modify a function
...f_X), replace=TRUE), rep(ID.Path, No_of_X)) Y <- lapply(X,function(x) sample(x, round(runif(1, min=10, max=50)))) X and Y are both lists, and I've made the following function to work on that data as part of a simulation I'm building: Mutate<-function(x){ l<-0 for(i in x){ l2<-0 l<-l+1 for(i in x[[l]]){ l2<-l2+1 if(runif(1) < 0.9) ifelse(runif(1) <0.5, x[[l]][l2] <- x[[l]][l2]+1, x[[l]][l2] <- x[[l]][l2]-1) } } return(x) } I call this with Effectors<-Mutate(X) The function is designed to alter the values of each eleme...
2007 Dec 11
2
nut-2.2.1-pre2
Shamelessly reusing the announcement Arnaud sent about three months ago for nut-2.2.1: "We're preparing to release 2.2.1-pre2, so if you have some fixes to backport on Testing, consider announcing it and doing asap. As always, compatibilities update and bugfixes only!" Regards, Arjen -- Eindhoven - The Netherlands Key fingerprint - 66 4E 03 2C 9D B5 CB 9B 7A FE 7E C1
2012 Nov 16
1
Code works, but not as function.
...om experiment), change the value by 1 in either direction, higher or lower with equal probability. Here it is (I've changed the 0.3 value I mentioned to 0.9, so many values change so it can be easily seen): l<-0 # Set counter 1 to 0. for(i in Effectors){ # Begin loop on list of effectors. l2<-0 # Set counter 2 to 0. l <-l+1 # Increace counter number 1. for(i in Effectors[[l]]){ # Begin loop through all effector values. l2 <-l2+1 # Increace counter number 2. if(runif(1) < 0.9) ifelse(runif(1) <0.5, Effectors[[l]][l2] <- Effectors[[l]][l2]+1, Effectors[[l]][...
2013 Apr 09
1
sorting the VAR model output according to variable names??
...notice below, the output is sorted according to lags. >VAR(cbind(fossil,labour),p=2,type="const") VAR Estimation Results: ======================= Estimated coefficients for equation fossil: =========================================== Call: fossil = fossil.l1 + labour.l1 + fossil.l2 + labour.l2 + const fossil.l1 labour.l1 fossil.l2 labour.l2 const 0.4686535 -0.5324335 0.2308964 0.8777865 -0.6711897 Estimated coefficients for equation labour: =========================================== Call: labour = fossil.l1 + labour.l1 + fossil.l2 + labour.l2 + const f...
2011 Jun 27
4
How many L1/L2 my cpu have ?
Hi Could anybody explain me how to check how many L1/L2 cache my cpu have. I'm using CentOS 5.6 *cat /proc/cpuinfo |grep CPU * model name : Intel(R) Core(TM)2 Duo CPU T9300 @ 2.50GHz model name : Intel(R) Core(TM)2 Duo CPU T9300 @ 2.50GHz Diagram of a generic dual-core processor, with CPU-local level 1 caches, and a shared, on-die level 2 cache....
2009 Feb 17
4
joining "one-to-many"
...repeated several times, and some attributes at that location. The second table has the same locations, but only once with a different set of attributes. I would like to add the second set of attributes to the first table. Example: set.seed <- 123 loc <- c(rep("L1", 3), rep("L2", 5), rep("L3", 2)) val1 <- round(rnorm(10),2) val2 <- c("a", "b", "c", "a", "b", "d", "f", "e", "b", "e") t1 <- data.frame(loc, val1, val2) t2 <- data.frame(loc=c("L1...
2016 Sep 19
2
How to set QEMU qcow2 l2-cache-size using libvirt xml?
QEMU's default qcow2 L2 cache size is too small for large images (and small cluster sizes), resulting in very bad performance. https://blogs.igalia.com/berto/2015/12/17/improving-disk-io-performance-in-qemu-2-5-with-the-qcow2-l2-cache/ shows huge performance hit for a 20GB qcow2 with default 64kB cluster size: L2 Cache,...
2007 Apr 16
1
Names in vector occurring in another vector
I have a vector of character strings such as mainnames<-c("CAD","AUD") and another vector say checknames<-c("CAD.l1","AUD.l1","JPY.l1","EUR.l1","CAD.l2","AUD.l2","JPY .l2","EUR.l2") I want a new vector of character strings that is just resultnames<-c("JPY.l1","EUR.l1","JPY.l2","EUR.l2") Because any time a name occurs in checknames that has a subset that matches with ma...
2010 Aug 12
1
Need help to understand integrate function
Hi, I'm running into a wall when trying to use the integrate function. I have the following setting: powerLaw2 <- function(x,l1,l2,c0,t0) { idx <- which(x <= 0); if (length(idx) > 0) { x[idx] <- 0; } xl <- (-l1+l2)*log(x/t0); L <- log(c0)-l1*log(x)-log(1+exp(xl)); L <- exp(L); return(L); } plCDF2 <- function(x,l1,l2,c0,t0) { print(c(l1,l2,c0,t0)); cdf <- integrate...
2014 Jun 26
2
[LLVMdev] cross-section differences in MC generation
I think that's incorrect. It should to: .section .foo .L1: .L2 = .L1 .section .bar .long .L3-.L2 .L3: Because .L3 and .L2 are in different sections. - Justin On Thu, Jun 26, 2014 at 2:46 PM, Rafael EspĂ­ndola <rafael.espindola at gmail.com> wrote: > This reduces to > > .section .foo > .L1: > .L2 = .L1 > .section .bar > .long .L1-.L...
2005 Feb 21
5
Compare rows of two matrices
...10, 22, NA, NA, 80, 49, 61, 190), ncol=4 ) #Whereas x contains all NA?s from y plus some additional NA?s. #I want to find the index of these additional NA?s. I think, there must be a very easy way to do this. #Here are the indices of NA?s in x and y: l1 <- which(is.na(x), arr.ind=TRUE) l2 <- which(is.na(y), arr.ind=TRUE) #> l1 # [,1] [,2] #[1,] 2 1 #[2,] 3 1 #[3,] 4 1 #[4,] 3 3 #[5,] 4 3 #> l2 # row col #[1,] 2 1 #[2,] 3 1 #[3,] 3 3 #[4,] 4 3 #Now I want to find a matrix, which includes the values of l1, without the r...
2010 Aug 02
2
[LLVMdev] indirectbr and phi instructions
Hi, How does the requirement that phi instructions have one value per predecessor basic block interact with indirectbr instructions? For instance, take the following code: L1: br i1 %somevalue, label %L2, label %L3 L2: %ret1 = i8* blockaddress(@myfunction, %L5) br label %L4 L3: %ret2 = i8* blockaddress(@myfunction, %L6) br label %L4 L4: %ret = phi i8* [%ret1, L2], [%ret2, L3] indirectbr i8* %ret, [label %L5, label %L6] L5: %myval = phi i32 [0, %L2], [1, %L3] ; are both of these...
2007 Oct 04
6
Layer 3 switching...
Is it even possible or even worth while to do layer 3 switching (bridging) on a Linux system? Or would this be considered routing even though everything is done on OSI Layer 2? Which would be faster, Layer 3 switching (bridging) on OSI Layer 2 or routing on OSI Layer 3? Grant. . . .
2014 Jan 21
2
Re: Double fault panic in L2 upon v2v conversion
On 01/17/2014 04:06 PM, Rom Freiman wrote: > Kashyap, just to be sure - it happens to you during the v2v > conversion? on L2? I haven't done any v2v conversions in L2 (or at any other level). PS: Sorry, I didn't notice my previous 2 emails didn't go to the list, that wasn't intended. Rich, you bounce them here, if you prefer (instead of me clumsily forwarding them). -- /kashyap
2009 Mar 28
1
calculating average for multiple subclasses in a data set
...gth for each type of object as opposed to the mean of all the objects in the set. This is in order to make a comparison between the lengths of each type of objects and the number of those objects. > x Chromosome Begin End Type Class Norm Length 458327 Y 1 318 L2_Plat1b LINE/L2 5.758902 317 458330 Y 439 673 L2_Plat1i LINE/L2 5.455321 234 458331 Y 2 309 L2_Plat1i LINE/L2 5.726848 307 458332 Y 1746 2232 L2_Plat1d LINE/L2 6.186209 486 458333 Y 948 1132 L2_Plat1e LINE/L2 5.214936 184 458335...
2005 Feb 17
6
Converting a list to a matrix - I still don't think I have it right
Hi We have touched on this before, but I don't think I quite got it right. So I have a list, each element of which is a a vector of 2 numbers: > l2 $cat000_a01 [1] 0.3429944 4.5138244 $cat000_a02 [1] 0.1929336 4.3064944 $cat000_a03 [1] -0.2607796 4.1551591 What I actually want to convert this into is a matrix with the names (cat000_a01 etc) as row names, the first element of each of the vectors forming the first column of the new matrix, a...
2014 Jan 21
3
Re: Double fault panic in L2 upon v2v conversion
Hi, We all agree that it's not specific to virt-v2v. I managed to reproduce the same double fault on "normal" L2 boot - without libguestfs interference. And as Paolo wrote already, he will take a look at it. Thanks, Rom On Tue, Jan 21, 2014 at 3:05 PM, Richard W.M. Jones <rjones@redhat.com>wrote: > On Tue, Jan 21, 2014 at 04:38:30PM +0100, Kashyap Chamarthy wrote: > > On 01/17/2014 04:06 PM...
2016 Sep 20
0
Re: How to set QEMU qcow2 l2-cache-size using libvirt xml?
On Mon, Sep 19, 2016 at 11:32:26AM -0400, Frank Myhr wrote: >QEMU's default qcow2 L2 cache size is too small for large images (and small cluster sizes), resulting in very bad performance. > >https://blogs.igalia.com/berto/2015/12/17/improving-disk-io-performance-in-qemu-2-5-with-the-qcow2-l2-cache/ >shows huge performance hit for a 20GB qcow2 with default 64kB cluster size...
2010 Jan 14
1
lattice dotplot with missing levels in factor variable
...ch panel shows levels vs. responses; the levels are sorted by responses but levels vary from one panel to another. However, I run into problems with controlling the y-limits and y-labels. In particular, suppose I have a data frame rsp <- c(10,2,4,0,2,3) lvl <- factor(c("L1","L2","L3","L2","L3","L4"),levels=c("L1","L2","L3","L4")) cat <- factor(c("A","A","A","B","B","B"),levels=c("A","B")) xx <- data.fram...