Displaying 20 results from an estimated 1418 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]][...
2024 Nov 11
3
Interpreting data from 220V input APC UPS
...ut and 120/120 volt outputs. The data
> for the voltages is not what I'm expecting, and I am wondering how I
> should interpret it.
Wow, that sounds kind of industrial. Model?
Is the input an L14-20P? Or equivalent non-twistlock?
> Here is an example from upsc:
>
> input.L1-L2.voltage: 121
> input.L2-L3.voltage: 120
> input.voltage: 121.20
> output.current: 5.90
> output.L1-L2.voltage: 119
> output.L1.current: 5.90
> output.L2-L3.voltage: 119
> output.L2.current: 1
>
> The "input.voltage" value doesn't reflect the 240 volts that i...
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....
2024 Nov 16
1
Interpreting data from 220V input APC UPS
...t-phase" it could do some conversions. Is that feasible? Would it
make more sense to do it in upsc? Or should I post-process in my own
tooling?
The mapping I came up with follows. Any suggestions on how/where best
to deal with this?
John
====
# Substitute "Leg1" for "L1-L2" or "L1"
input.L1-L2.voltage=121
input.L1-L2.voltage.maximum=123
input.L1-L2.voltage.minimum=118
output.L1-L2.voltage=119
output.L1.current=6.10
output.L1.current.maximum=13.20
output.L1.current.minimum=5.50
output.L1.power.maximum.percent=63
output.L1.power.minimum.percent=27
output...
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,...
2024 Nov 11
1
Interpreting data from 220V input APC UPS
Hi --
I am monitoring via the SNMP driver an APC SmartUPS that has split phase
(2L + neutral) 240V input and 120/120 volt outputs. The data for the
voltages is not what I'm expecting, and I am wondering how I should
interpret it. Here is an example from upsc:
input.L1-L2.voltage: 121
input.L2-L3.voltage: 120
input.voltage: 121.20
output.current: 5.90
output.L1-L2.voltage: 119
output.L1.current: 5.90
output.L2-L3.voltage: 119
output.L2.current: 1
The "input.voltage" value doesn't reflect the 240 volts that is actually
being applied. To get that, wou...
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...
2024 Nov 12
1
Interpreting data from 220V input APC UPS
Sounds pretty normal from what I see. It appears that this is *NOT* a true 240v UPS, but rather one that provides two legs of 120v output from two legs of 120 input, and what is seen as "L2" is actually neutral, and the line names are reporting incorrectly. With that in mind, each leg in should be 120v, as well as the outputs, which is exactly what you are seeing.(The fact tht L1 to L3 is 240v really isn't relevant).
- Tim
On November 11, 2024 6:56:51 PM EST, Greg Troxel vi...
2024 Nov 12
1
Interpreting data from 220V input APC UPS
Thanks, Tim. The unit was available with single as well as split phase
output, and from the data I can find the input was single phase, though
the input connector has L1/L2/N/G wires. I'm digging through the MIB to
see what the raw data looks like.
Thanks!
John
----
On 11/11/24 19:14, Tim Dawson wrote:
> Sounds pretty normal from what I see. It appears that this is *NOT* a
> true 240v UPS, but rather one that provides two legs of 120v output from
>...
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