Displaying 20 results from an estimated 1583 matches for "seg".
Did you mean:
see
2018 Apr 16
5
how to write a loop to repetitive jobs
Hi All..,
I need to do the following repetitive jobs:
seg71 <- read.csv("C:/Awork/geneAssociation/removed8samples/neuhausen71/seg.pr3.csv", head=T)
seg71$id <-"sn71"
seg72 <- read.csv("C:/Awork/geneAssociation/removed8samples/neuhausen72/seg.pr3.csv", head=T)
seg72$id <-"sn72"
seg73 <- read.csv(&quo...
2013 Sep 12
3
[PATCH 1/1 V3] x86/AMD-Vi: Add additional check for invalid special->handle
...39;'['');
id = simple_strtoul(s + 1, &s, 0);
- if ( id != (typeof(hpet_sbdf.id))id || *s != '']'' || *++s != ''='' )
+ if ( (*s != '']'') || (*++s != ''='') )
return;
s = parse_pci(s + 1, &seg, &bus, &dev, &func);
if ( !s || *s )
return;
+ hpet_sbdf.id = id;
hpet_sbdf.bdf = PCI_BDF(bus, dev, func);
hpet_sbdf.seg = seg;
hpet_sbdf.cmdline = 1;
}
custom_param("ivrs_hpet[", parse_ivrs_hpet);
+static bool_t is_ioapic_overidden(u16 se...
2011 Jan 20
1
Generating time progressing line for Google Earth
...o visualise a time-progressing line (it's supposed to
represent spread patterns) using brew package and Google Earth.
The idea is to have a function which takes start and end point
geographic coordinates, as well as number of intervals to chop the path
up, and returns the collection of points segmenting this line.
Unfortunately my calculations fail for large distances, as the
generated lines are nowhere near being straigth (run the code to see the
example).
My R code so far:
############
#---LIBS---#
############
library(brew)
###############################
#---GREAT CIRCULAR DISTAN...
2018 May 22
2
Using tryCatch in a for loop
...255)
mydata<- data.frame(Year, Lake1, Lake2, Lake3, Lake4)
#Running a for loop that indicates when an error or warning occurs
y<- mydata[,2:5]
year <- mydata$Year
regimeshift <- data.frame()
for (i in 1:4){
tryCatch({
y.val <- y[,i]
lin.reg <- lm(y.val~year, mydata)
seg.reg <- segmented.lm(lin.reg, seg.Z = ~ year, psi = NA, control = seg.control(stop.if.error = FALSE, n.boot = 0, it.max = 20))
RSyear <- summary(seg.reg)$psi [1,2]
SlopeRegime1 <- summary(seg.reg)$coefficients[2,1]
SlopeDiff <- summary(seg.reg)$coefficients[3,1]
new.reg...
2018 May 22
0
Using tryCatch in a for loop
...uick response!
>
> In its current?state?the code?prints three lines that say "warning". What I was expecting is that I would?get?a matrix with 4 columns, 1. column names (from the original data, ex. Lake1) 2. breakpoint year 3. slope 4. slope difference from the first to the?second segment of the segmented regression. Each row in the matrix would be the results of the segmented regression test for each lake in the original data frame, so?Lake1 results would be in row 2 (row 1 would be titles) and so on. If any of?this is confusing please let me know and I will clarify!
>
>...
2018 Apr 16
0
how to write a loop to repetitive jobs
Hello,
The following might do it. Without data it's untested.
wd <- function(i){
paste0("C:/Awork/geneAssociation/removed8samples/neuhausen7", i,
"/seg.pr3.csv")
}
seg <- lapply(1:5, function(i) {
DF <-read.csv(wd(i))
DF$id <- paste0("sn7", i)
DF
})
seg <- do.call(rbind, seg)
row.names(seg) <- NULL
Hope this helps,
Rui Barradas
On 4/16/2018 9:54 PM, Ding, Yuan Chun wrote:
> Hi All..,
>
>...
2018 May 22
4
Using tryCatch in a for loop
...for the quick response!?
In its current?state?the code?prints three lines that say "warning". What I was expecting is that I would?get?a matrix with 4 columns, 1. column names (from the original data, ex. Lake1) 2. breakpoint year 3. slope 4. slope difference from the first to the?second segment of the segmented regression. Each row in the matrix would be the results of the segmented regression test for each lake in the original data frame, so?Lake1 results would be in row 2 (row 1 would be titles) and so on. If any of?this is confusing please let me know and I will clarify!
Thanks!...
2018 Apr 17
0
how to write a loop to repetitive jobs
Hello Ding,
try this:
seg <- list()
for ( d in 71:75) {
s <- paste0("seg",d)
sn <- paste0("sn",d)
Dir<-paste("C:/Awork/geneAssociation/removed8samples/neuhausen", i, sep="")
setwd(Dir)
seg[[s]] <- read.csv("seg.pr3.csv", head=T)
seg[[s]]$id <- s...
2005 Sep 13
1
logistic regression with nominal predictors
...y for obvious mistakes, as I am quite a newby with no Statistics
background).
My question is going to be what is the gain of logistic regression over
odds ratios when none of the input variables is continuous.
My experiment:
Outcome: ordinal scale, ``quality'' (QUA=1,2,3)
Predictors: ``segment'' (SEG) and ``stress'' (STR). SEG is
nominal scale with 24 levels, and STR is dychotomous (0,1).
Considering the outcome continuous, two-way ANOVA with
aov(as.integer(QUA) ~ SEG * STR)
doesn't find evidence of interaction between SEG and STR, and they are
s...
2018 May 22
0
Using tryCatch in a for loop
...ake3, Lake4)
>
> #Running a for loop that indicates when an error or warning occurs
> y<- mydata[,2:5]
> year <- mydata$Year
> regimeshift <- data.frame()
> for (i in 1:4){
> tryCatch({
> y.val <- y[,i]
> lin.reg <- lm(y.val~year, mydata)
> seg.reg <- segmented.lm(lin.reg, seg.Z = ~ year, psi = NA, control =
> seg.control(stop.if.error = FALSE, n.boot = 0, it.max = 20))
> RSyear <- summary(seg.reg)$psi [1,2]
> SlopeRegime1 <- summary(seg.reg)$coefficients[2,1]
> SlopeDiff <- summary(seg.reg)$coefficient...
2007 Apr 18
2
[PATCH 19/21] i386 Kprobes semaphore fix
IA-32 linear address translation is loads of fun.
While cleaning up the LDT code, I noticed that kprobes code was very bogus
with respect to segment handling. Many, many bugs are fixed here. I chose
to combine the three separate functions that try to do linear address
conversion into one, nice and working functions. All of the versions had
bugs.
1) Taking an int3 from v8086 mode could cause the kprobes code to read a
non-existent LDT...
2007 Apr 18
2
[PATCH 19/21] i386 Kprobes semaphore fix
IA-32 linear address translation is loads of fun.
While cleaning up the LDT code, I noticed that kprobes code was very bogus
with respect to segment handling. Many, many bugs are fixed here. I chose
to combine the three separate functions that try to do linear address
conversion into one, nice and working functions. All of the versions had
bugs.
1) Taking an int3 from v8086 mode could cause the kprobes code to read a
non-existent LDT...
2007 Oct 29
1
first_sect & last_sect in blkif_request_segment
Am I right in saying that first_sect & last_sect in
blkif_request_segment are the relative sector numbers in the transfer?
So if I wanted to transfer 9 sectors starting at 100, the resultant
contents of the request would look like:
req->sector_number = 100
req->seg[0].first_sect = 0
req->seg[0].last_sect = 3
req->seg[1].first_sect = 4
req->seg[1].las...
2006 Oct 18
3
[Bug] Seg Faulting in index.rb:718
Hey,
Ferret is repeatedly seg-faulting my mongrel servers on the same line:
/usr/local/lib/ruby/gems/1.8/gems/ferret-0.10.11/lib/ferret/index.rb:718:
[BUG] Segmentation fault
ruby 1.8.5 (2006-08-25) [i686-linux]
I''m using ferret 0.10.11. I haven''t had the time to dig into yet, it''s
on the backburn...
2007 Apr 18
0
[RFC/PATCH LGUEST X86_64 04/13] Useful debugging
...",
+ regs->errcode, regs->trapnum);
+
+ lguest_dump_trace(vcpu, regs);
+}
+
+struct guest_ksym_stuff {
+ unsigned long *addresses;
+ unsigned long num_syms;
+ u8 *names;
+ u8 *token_table;
+ u16 *token_index;
+ unsigned long *markers;
+};
+
+static struct lguest_text_ptr *get_text_segs(struct lguest_vcpu *vcpu)
+{
+ struct lguest_guest_info *linfo = vcpu->guest;
+ struct lguest_text_ptr *segs, **p;
+ struct lguest_text_ptr *g;
+ unsigned long addr;
+ int i;
+
+ if (!linfo->lguest_data)
+ return NULL;
+
+ addr = lhread_u64(vcpu, (u64)&linfo->lguest_data->text);
+...
2007 Apr 18
0
[RFC/PATCH LGUEST X86_64 04/13] Useful debugging
...",
+ regs->errcode, regs->trapnum);
+
+ lguest_dump_trace(vcpu, regs);
+}
+
+struct guest_ksym_stuff {
+ unsigned long *addresses;
+ unsigned long num_syms;
+ u8 *names;
+ u8 *token_table;
+ u16 *token_index;
+ unsigned long *markers;
+};
+
+static struct lguest_text_ptr *get_text_segs(struct lguest_vcpu *vcpu)
+{
+ struct lguest_guest_info *linfo = vcpu->guest;
+ struct lguest_text_ptr *segs, **p;
+ struct lguest_text_ptr *g;
+ unsigned long addr;
+ int i;
+
+ if (!linfo->lguest_data)
+ return NULL;
+
+ addr = lhread_u64(vcpu, (u64)&linfo->lguest_data->text);
+...
2007 Apr 18
1
[PATCH 6/14] i386 / Add some segment convenience functions
Add some convenient segment macros to the kernel. This makes the
rather obfuscated 'seg & 4' go away.
Patch-keys: i386 segment cleanup
Patch-base: 2.6.13-rc5-mm1
Signed-off-by: Zachary Amsden <zach@vmware.com>
Index: linux-2.6.13/include/asm-i386/segment.h
==============================================...
2007 Apr 18
1
[PATCH 6/14] i386 / Add some segment convenience functions
Add some convenient segment macros to the kernel. This makes the
rather obfuscated 'seg & 4' go away.
Patch-keys: i386 segment cleanup
Patch-base: 2.6.13-rc5-mm1
Signed-off-by: Zachary Amsden <zach@vmware.com>
Index: linux-2.6.13/include/asm-i386/segment.h
==============================================...
2008 Oct 13
3
console output
... ID Mem(MiB) VCPUs State Time(s)
Domain-0 0 3202 8 r----- 5220.1
vm1 3 4095 2 -b---- 3529.2
vm2 5 8191 4 -b---- 399.0
[root@serverxen ~]# xm console 3
4gb seg fixup, process prelink (pid 10142), cs:ip 73:08083da1
4gb seg fixup, process prelink (pid 10142), cs:ip 73:08083da1
4gb seg fixup, process prelink (pid 10142), cs:ip 73:08083da1
4gb seg fixup, process prelink (pid 10142), cs:ip 73:08083da1
4gb seg fixup, process prelink (pid 10142), cs:ip 73:08083d...
2014 Nov 10
2
kernel BUG at drivers/block/virtio_blk.c:172
...un with your patch.
>
> I am using libvirt (virt-manager) to configure and run the virtual
> machine, but looking at the xml, I do not think it's passing
> 'scsi=off' at all.
>
> Btw, that xfs file system is a root file system.
>
>
> [ 3.667553] blk_recount_segments: 1-0-1 vcnt-0 segs-128
> [ 3.668692] blk_recount_segments: 1-0-1 vcnt-0 segs-128
> [ 3.669897] blk_recount_segments: 1-0-1 vcnt-0 segs-128
> [ 3.671083] blk_recount_segments: 1-0-1 vcnt-0 segs-128
Hamm, I should have used bi_phys_segments to decide if
merge is needed, and at...