search for: u2

Displaying 20 results from an estimated 356 matches for "u2".

Did you mean: u32
2013 May 16
2
A function that can modify an object? Or at least shows principles how to modify an object?
Hi, If I have an R object UUU, where the second element is U2, based on "g" column of my.table my.table of UUU is: mmm ggg gindex map Info aaa123 U1 1 1 1 aaa124 U1 1 2 1 bbb1378 U2 2 1 1 bbb8888 U2 2 2...
2011 Oct 27
2
creating vector os zeros for simulations (beginner's question)
Dear R helpers,   I know this is a simple task, but I'm new to R and I'm still havind difficulties with the language. I want to create 30 vectors to be used in a simulation, each with 1 columm and 5 lines, of random numbers N(0,1). What I tried was this:   N=150 u2<-rep(1:150,0) u2<-list(matrix(0,5)) u2 for(i in 1:N) { u2[i]<-rnorm(5) } u2 ### also tried this: N=150 u2<-rep((matrix(0,5)),30) u2 for(i in 1:N) { u2[i]<-rnorm(5) } u2   The problem is none of this gives me the random numbers arranged in vectors. I've tried other variations t...
2009 Feb 05
1
optimal control, maximization with several variables?
Dear all, I would like to solve the following problem, which can be done with optimal control theory or dynamic programming: max(x,y) a*u1+b*u2+c*f1(u2) s.t. 0<u1<x, 0<u2<f2(x,u2), x'=f3(u1,u2,x) which can be rewritten if optimal control theory should be applied as H=a*u1+b*u2+c*f1(u2)+lambda*(x') s.t. 0<u1<x, 0<u2<f2(x,u2) The maximum principle conditions would solve the problem. However...
2012 Dec 06
1
Anomalous outputs from rbeta when using two different random number seeds
...make sense of. Around half of the time, it behaves as with set.seed(80), but around half of the time, it behaves very differently, with a much wider distribution of differences between the two distributions. # Beta parameters #distribution 1 u1.a <- 285.14 u1.b <- 190.09 # distribution 2 u2.a <- 223.79 u2.b <- 189.11 #Good example: output is as expected set.seed(80); u1.good <- rbeta(1000, u1.a, u1.b) set.seed(80); u2.good <- rbeta(1000, u2.a, u2.b) #Bad example: output is different to expected set.seed(20); u1.bad <- rbeta(1000, u1.a, u1.b) set.seed(20); u2.bad &lt...
2007 Mar 27
7
Replacement in an expression - can't use parse()
Dear all, Suppose I have a very long expression e. Lets assume, for simplicity, that it is e = expression(u1+u2+u3) Now I wish to replace u2 with x and u3 with 1. I.e. the 'new' expression, after replacement, should be: > e expression(u1+x+1) My question is how to do the replacement? I have tried using: > e = parse(text=gsub("u2","x",e)) > e = parse(text=gsub("u...
2006 Nov 21
2
Symbolic derivation using D in package stats - how do I properly convert the returned call into a character string?
...------------------------ # First, I try with d=2, now it works: d<-2; u<-rep("u1",d); th<-rep("th1",d) for(i in 1:d) { u[i] <- paste("u",i,sep=""); th[i] <- paste("th",i,sep="") } dC1 <- expression((((1 - 2 + u1^(-th1)) + u2^(-th1))^(-1/th1))) dC2 <- expression(u1) #These expressions were returned from a combination of several expressions of mine... for(j in 1:(d-1)) { dC1<-D(expr=dC1,name=u[j]); dC2<-D(expr=dC2,name=u[j]) } # I wish to create a new expression equal to dC1 / dC2 and I proceed as follows: F &...
2011 Mar 29
5
Integration with variable bounds
If this is posted elsewhere I cannot find it. I need to perform multiple integration where some of the variables are in the bounds of the other variables. I was trying to use R2Cuba function but cannot set the upper and lower bounds. My code so far is : int <- function(y){ u2 = y[1] z2 = y[2] u1 =y[3] z1 = y[4] ff <- u1*(z1-u1)*u2*(z2-u2)*exp(-0.027*(12-z2)) return(ff) } cuhre(4,1,int,rel.tol=1e-3,lower=c(y[4],y[4],4,4),upper=c(12,y[4],12,y[2]),abs.tol= 1e-12,flags= list(verbose=2, final=0)) I know that code is wrong but it shows that variables are in both the u...
2009 Nov 23
18
OpenSuSE 11.2 bug, dom0-cpus limit causes xenwatch_cb running 100% and xm command freeze and xend dead
...4534 0.0 0.0 0 0 ? D< 13:04 0:00 [xenwatch_cb] root 4535 0.0 0.0 0 0 ? D< 13:04 0:00 [xenwatch_cb] root 4536 0.0 0.0 0 0 ? D< 13:04 0:00 [xenwatch_cb] from /var/log/messages every 65 sec Nov 23 13:55:14 dom0-u2 kernel: [ 3112.781517] BUG: soft lockup - CPU#4 stuck for 61s! [xenwatch_cb:4532] Nov 23 13:55:14 dom0-u2 kernel: [ 3112.781517] Modules linked in: sha1_generic hmac cryptomgr aead pcompress crypto_ blkcipher crypto_hash crypto_algapi drbd netbk blkbk blkback_pagemap blktap xenbus_be binfmt_misc xt...
2005 May 20
0
Message Stopped by Bothways : Block Greater than 40 recip
...Command OK <FSecure AntiVirus> file <MsgHeader.txt> Result= 0 after 15 millisecs 0224 17:40:58.468 Command OK <FSecure AntiVirus> file <Plain.txt> Result= 0 after 0 millisecs 0224 17:40:58.468 Name=U1\B0000edbce.00000001.mml (MAIL,1338) False 0224 17:40:58.468 Name=U2\MsgHeader.txt (MHDR,1203) False 0224 17:40:58.468 Name=U2\Plain.txt (MBODY,133) False 0224 17:40:58.468 50 user(s) match rule - Block German Spam 0224 17:40:58.468 Name=U1\B0000edbce.00000001.mml (MAIL,1338) False 0224 17:40:58.484 50 user(s) match rule - SpamCensor 0224 17:40:58.484...
2020 Apr 29
1
grid 4.0 generates wrong results when adding two complex units by sum()
Hi, In grid 4.0, adding two complex units by `sum()` seems to give wrong results. In the following example, `u1 + u2` gives the correct result, but `sum(u1, u2)` also `sum(unit.c(u1, u2))` give the wrong results. ``` library(grid) u1 = 0.4*sum(unit(1, "inch"), unit(1, "mm")) u2 = 0.1*sum(unit(1, "inch"), unit(1, "mm")) u1 # [1] 0.4*sum(1inches, 1mm) u2 # [1] 0.1*sum(1in...
2018 Jan 15
1
"linkfile not having link" occurrs sometimes after renaming
There are two users u1 & u2 in the cluster. Some files are created by u1, and they are read only for u2. Of course u2 can read these files. Later these files are renamed by u1. Then I switch to the user u2. I find that u2 can't list or access the renamed files. I see these errors in log: [2018-01-15 17:35:05.133711] I [M...
2011 Sep 11
3
(no subject)
...nd cu back into the function f2. Eventually, I want to find the lambda value and the corresponding cl and cu values that would make f2=0.1. The result of this program does not seem to match the answer I have. Can some one give me some hint? Thank you very much. Hannah u1 <- -3 u2 <- 4 f1 <- function(lambda,z,p1){ lambda*(p1*exp(u1*z-u1^2/2)+(0.2-p1)*exp(u2*z-u2^2/2))-(1-lambda)*0.8} f2 <- function(p1,cl, cu){ 0.8*(pnorm(cl)+(1-pnorm(cu)))/(0.8*(pnorm(cl)+(1-pnorm(cu)))+p1*(pnorm(cl- u1)+(1-pnorm(cu-u1)))+(0.2-p1)*(pnorm(cl-u2)+(1-pnorm(cu-u2))))} p1 <-...
2008 Nov 17
0
Error while running virt-install
...install and not able to do and seeking help. Please let me know if the parameters to virt-install are correct and if not please let me know the correct parameters. Contents of RHEL4 CD1 ---------------------- [root@xenserver mnt]# ls autorun                RELEASE-NOTES-ja.html        RELEASE-NOTES-U2-ja.html     RELEASE-NOTES-U4-hi.html EULA                   RELEASE-NOTES-ko.html        RELEASE-NOTES-U2-ko.html     RELEASE-NOTES-U4-it.html GPL                    RELEASE-NOTES-pa.html        RELEASE-NOTES-U2-pa.html     RELEASE-NOTES-U4-ja.html images                 RELEASE-NOTES-pt_BR.html   ...
2007 Apr 20
1
Estimating a Normal Mixture Distribution
...ble under MASS in R. Unfortunately, when I tried out the code from the book it didn?t work out, although I tried to copy the code as accurately as possible: CODE START # loading dataset. attach(geyser) # defining start values for the five parameters. p0<-c(p=mean(waiting<70),u1=50,s1=5,u2=80,s2=5) # defining the objective function (=log-likelihood function). mix.obj<-function(p,x) { e<-p[1]*dnorm((x-p[2])/p[3])/p[3] + (1-p[1])*dnorm((x-p[4])/p[5])/p[5] if (any(e<=0)) Inf else -sum(log(e)) } # define two functions to calculate the first derivatives of the objective fu...
2016 Oct 18
3
CyberPower SX650G no driver.
Hi. I have this this on a Odroid-u2 backing it up. Have the USB from the CyberPower SX650G plug in the Odroid-u2 and when I do a lsusb it looks like this: Bus 001 Device 008: ID 0764:0501 Cyber Power System, Inc. CP1500 AVR UPS The User's Manual list SE450G and SX650G. So I guess they would take the same driver. CyberPower...
2011 Jan 27
2
help for a loop procedure
...d to search for a loop script, or something like that. However, I’m relatively new to R and I don’t know what I need to do… Can anyone help me? Here I’ve written a simple example of the operations I need to do, just to make my problem clearer. My dataset (matrix) has sample events by rows (U1,U2,U3) and detected species by columns. U<-read.table("C:\\Documents \\tre_usc.txt",header=T,row.names=1,sep="\t",dec = ",") U # global matrix with 3 samples SPECIE Aadi Aagl Apap Aage Bdia Beup Crub Carc Cpam U1 0...
2008 Nov 18
0
Fw: Error while running virt-install
...install and not able to do and seeking help. Please let me know if the parameters to virt-install are correct and if not please let me know the correct parameters. Contents of RHEL4 CD1 ---------------------- [root@xenserver mnt]# ls autorun                RELEASE-NOTES-ja.html        RELEASE-NOTES-U2-ja.html     RELEASE-NOTES-U4-hi.html EULA                   RELEASE-NOTES-ko.html        RELEASE-NOTES-U2-ko.html     RELEASE-NOTES-U4-it.html GPL                    RELEASE-NOTES-pa.html        RELEASE-NOTES-U2-pa.html     RELEASE-NOTES-U4-ja.html images                 RELEASE-NOTES-pt_BR.html   ...
2003 Nov 07
13
File Locking
Hi, I'm running smbd 2.2.8. I'm a little green when it comes to file locking with samba. I have two users that access a single data file on a FreeBSD box. It's a moneydance data file and obviously it gets messed-up if two users are writing to it at the same time. Is there a way with samba to stop a second instance of the file from being opened, something like a "File In
2016 Dec 07
4
You have not permission to view content of this location
...m* I know that smbldap-tools is a dead project, but I'm interested in it and would like research on it. I create users and groups by: sudo smbldap-groupadd -a g1 sudo smbldap-groupadd -a g2 sudo smbldap-useradd -a -P -g 1001 u1 sudo smbldap-useradd -a -P -g 1002 u1 groups u1 u1 : g1 groups u2 u2 : g2 I create shared folder: cd / sudo mkdir data sudo chown u1 /data sudo chgrp g1 /data sudo chmod ugo+rwx /data I edit /etc/samba/smb.conf: [data] comment = data path = /data valid users = u1,u2 write list = u1,u2 create mask = 0777 sync always = Yes ; hide do...
2009 Jan 10
0
Performance problem when tagging mp3 files
...But tagging mp3 files is incredibly slow. For example: If i just change the album tag of 10 mp3 files and save the result, saving lasts about 30 seconds or more. And my samba log (with log level 2) shows something like: [2008/08/24 10:01:04, 2] smbd/open.c:open_file(352) js opened file mp3/Rock/U2/U218 Singles/U2 And Green Day - U218 Singles - 17 - The Saints Are Coming.mp3 read=Yes write=No (numopen=1) [2008/08/24 10:01:04, 2] smbd/close.c:close_normal_file(344) ftp closed file mp3/Rock/U2/U218 Singles/U2 And Green Day - U218 Singles - 17 - The Saints Are Coming.mp3 (numopen=0) [2008/08/2...