search for: dval

Displaying 15 results from an estimated 15 matches for "dval".

Did you mean: deal
2007 Feb 15
1
Function to assign quantiles?
Hi. If I call the quantiles function as follows: qvec = quantiles(dvals,probs=seq(0,1,0.1)) the results will return a vector something like the following example: 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100% 56.0 137.3 238.4 317.9 495.8 568.5 807.4 1207.7 1713.0 2951.1 8703.0 Now I want to assign the d...
2014 Jul 08
1
[PATCH] nv50/ir: use unordered_set instead of list to keep our instructions in uses
...still need this ? break; @@ -1559,7 +1559,7 @@ SpillCodeInserter::run(const std::list<ValuePair>& lst) // Unspill at each use *before* inserting spill instructions, // we don't want to have the spill instructions in the use list here. while (!dval->uses.empty()) { - ValueRef *u = dval->uses.front(); + ValueRef *u = *dval->uses.begin(); Instruction *usei = u->getInsn(); assert(usei); if (usei->isPseudo()) { -- 1.8.4.5
2009 Mar 02
0
[PATCH 3 of 13] remove bgr
...c inline void tcx24_draw_line32(TCXState *s1, uint8_t *d, const uint32_t *cplane, const uint32_t *s24) { - int x, bgr, r, g, b; + int x, r, g, b; uint8_t val, *p8; uint32_t *p = (uint32_t *)d; uint32_t dval; - bgr = s1->ds->bgr; for(x = 0; x < width; x++, s++, s24++) { if ((be32_to_cpu(*cplane++) & 0xff000000) == 0x03000000) { // 24-bit direct, BGR order @@ -148,10 +138,7 @@ static inline void tcx24_draw_line32(TCXState *s1, uint8_t *d, b = *p8...
2008 Aug 20
3
Confidence Interval
...# Coloque essa média em um registro em y } y <- sort(y) # Ordene todas as médias geradas LI <- y[((1-nc)/2)*rep] # Limite inferior, LS <- y[rep-(((1-nc)/2)*rep)] # Limite superior ### PARTE GRÁFICA ### x <- mean(y) xvals <- seq(-LI, LI, length.out=5000) dvals <- dnorm(xvals,mean(y), sd(y))[1:5000] xbvals <- seq(LS, LS*2, length.out=5000) dbvals <- dnorm(xbvals,mean(y), sd(y))[1:5000] ahist <- hist(y, freq=FALSE, col="lightblue", main="Intervalo de confiança") polygon(c(xvals,LI,LI), c(dvals,dnorm(LI,mean(y), sd(y)),mi...
2023 Dec 08
1
Convert two-dimensional array into a three-dimensional array.
Colleagues I want to convert a 10x2 array: # create a 10x2 matrix. datavals <- matrix(nrow=10,ncol=2) datavals[,] <- rep(c(1,2),10)+c(rnorm(10),rnorm(10)) datavals into a 10x3 array, ThreeDArray, dim(10,2,10). The values storede in ThreeDArray's first dimensions will be the data stored in datavalues. ThreeDArray[i,,] <- datavals[i,] The values storede in ThreeDArray's second
2011 Nov 25
1
Multiple selection, renaming and saving the results
...d be done and named like that: acocar1I=subset(data1,(treat=="I" & data1$block==1 & data1$sp=="acocar" & data1$d0!="NA")) These are some of the functions I have to calculate: acocar1I.spp<-spp(x=acocar1I$gx, y=acocar1I$gy, window=wA) acocar1I.dp<-dval(acocar1I.spp,25,2.5,18,20) And I want to create a 'results' object to access easily all the results: acocar1I.res<-alist() acocar1I.res$data1<-acocar1I acocar1I.res$spp<-acocar1I.spp acocar1I.res$dp<-acocar1I.dp Can I do everything in a single loop or a single function?...
2007 May 26
2
polygon error?
Hi.. I'm not sure why polygon returns an area above the standard normal curve. z <- pretty(c(-3,3), 100) ht <- dnorm(z) data <- data.frame(z=z, ht=ht) zc <- 1.645 plot(data, type="l") lines(data) t <- subset(data, z>zc) polygon(t, col="red") Thanks, Lance [[alternative HTML version deleted]]
2017 Aug 19
1
[PATCH] nv50/ra: Only increment DefValue counter if we are going to spill
...if (defi->isPseudo()) { d = lval->defs.erase(d); - --d; if (slot->reg.file == FILE_MEMORY_LOCAL) to_del.insert(defi); else defi->setDef(0, slot); } else { spill(defi, slot, dval); + d++; } } -- 2.14.0
2002 Jan 30
2
Shade area under curve?
Hi all, I've got this graphics question which really should be easy. I want to shade an area between bounds under a curve. A suitable beginning seems to be the following: > plot(dnorm,-4,4) > segments(-4,0,4,0) > segments(-2,0,-2,dnorm(-2)) > segments(2,0,2,dnorm(2)) It is the area between -2 and 2 which I want to shade (or something similar). Hints anyone? Robert
2014 May 30
4
[Bug 79462] New: [NVC0/Codegen] Shader compilation falis in spill logic
...--> https://bugs.freedesktop.org/attachment.cgi?id=100179&action=edit failing tgsi shader The attached shader fails in the RA step, when inserting spill code: nv50_ir::SpillCodeInserter::run (this=0x7ffffffec0c0, lst=std::list) at codegen/nv50_ir_ra.cpp:1561 1561 while (!dval->uses.empty()) { Easily reproduced with nouveau_compiler -a c0. Apparently this shader is generated as part of the d3d9 st, with skyrimlauncher, when it's trying to detect the graphics card. dval is null, which means that something out there isn't an lvalue. Or, in this case, apparentl...
2000 Jun 28
1
[Patch] Shorter patch for smbfs 2.2.16
...o *server, char *p, - struct cache_dirent *entry) + struct cache_dirent *entry, int level) { char *result; unsigned int len = 0; @@ -1330,19 +1530,47 @@ */ entry->ino = 0; - result = p + WVAL(p, 0); - len = DVAL(p, 60); - if (len > 255) len = 255; - /* NT4 null terminates */ - entry->name = p + 94; - if (len && entry->name[len-1] == '\0') - len--; - entry->len = len; + switch (level) + { + case 1: + len...
2014 Sep 01
0
[PATCH] nv50/ir: use unordered_set instead of list to keep track of var defs
...udo()) { d = lval->defs.erase(d); - --d; if (slot->reg.file == FILE_MEMORY_LOCAL) delete_Instruction(func->getProgram(), defi); else defi->setDef(0, slot); } else { spill(defi, slot, dval); + d++; } } @@ -2098,7 +2097,7 @@ RegAlloc::InsertConstraintsPass::insertConstraintMoves() } assert(cst->getSrc(s)->defs.size() == 1); // still SSA - Instruction *defi = cst->getSrc(s)->defs.front()->getInsn(); +...
2002 Jun 25
1
RE: [PATCH] smbfs readdir fix (CFT: NetApp, OS/2)
Can someone share the smbfs-2.4.19-pre9-readdir.patch. -----Original Message----- From: David.Lee@bisus.com [mailto:David.Lee@bisus.com] Sent: Tuesday, June 25, 2002 4:21 PM To: vlads@sympatico.ca; urban@teststation.com Cc: samba@lists.samba.org; David.Lee@bisus.com Subject: [Samba] RE: [PATCH] smbfs readdir fix (CFT: NetApp, OS/2) Vlad. I still got the same problem - 'ls | wc -l'
2014 Dec 02
0
[PATCH RESEND] nv50/ir: use unordered_set instead of list to keep track of var defs
...if (defi->isPseudo()) { d = lval->defs.erase(d); - --d; if (slot->reg.file == FILE_MEMORY_LOCAL) to_del.insert(defi); else defi->setDef(0, slot); } else { spill(defi, slot, dval); + ++d; } } @@ -2118,7 +2117,7 @@ RegAlloc::InsertConstraintsPass::insertConstraintMoves() } assert(cst->getSrc(s)->defs.size() == 1); // still SSA - Instruction *defi = cst->getSrc(s)->defs.front()->getInsn(); +...
1998 Sep 04
0
Linux SMB Mount utils patch
...e SMB_IOC_GETMOUNTUID _IOR('u', 1, __kernel_uid_t) +#define SMB_IOC_NEWCONN _IOW('u', 2, struct smb_conn_opt) + +#ifdef __KERNEL__ + +#include <asm/unaligned.h> + +#define WVAL(buf,pos) \ +(le16_to_cpu(get_unaligned((__u16 *)((__u8 *)(buf) + (pos))))) +#define DVAL(buf,pos) \ +(le32_to_cpu(get_unaligned((__u32 *)((__u8 *)(buf) + (pos))))) +#define WSET(buf,pos,val) \ +put_unaligned(cpu_to_le16((__u16)(val)), (__u16 *)((__u8 *)(buf) + (pos))) +#define DSET(buf,pos,val) \ +put_unaligned(cpu_to_le32((__u32)(val)), (__u32 *)((__u8 *)(buf) + (pos))) + +/* where to...