Displaying 3 results from an estimated 3 matches for "refval".
Did you mean:
defval
2008 Aug 21
1
replacing missing values in a dataframe with reference values.
...orm(10), B=rnorm(10))
X$agegroup = cut(X$age, breaks=c(20, 30, 40, 50, 60, 70, 80), labels =
c("20-29", "30-39", "40-49", "50-59", "60-69", "70-79"))
# make some missing
X$A[c(1, 5, 6)]=NA
X$B[c(2, 3, 8)]=NA
and my reference dataset is
refval = data.frame(agegroup = rep(c("20-29", "30-39", "40-49", "50-59",
"60-69", "70-79"), 2), sex = c(rep(0,6), rep(1,6)),A = c(seq(0, 1,
length=6), seq(4,5,length=6)), B = c(seq(1, 2, length=6),
seq(3,4,length=6)))
My ugly "solution&q...
2014 Jul 08
1
[PATCH] nv50/ir: use unordered_set instead of list to keep our instructions in uses
...tions(-)
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir.cpp
index 13f8cf2..ca3c806 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir.cpp
@@ -141,9 +141,9 @@ ValueRef::set(Value *refVal)
if (value == refVal)
return;
if (value)
- value->uses.remove(this);
+ value->uses.erase(this);
if (refVal)
- refVal->uses.push_back(this);
+ refVal->uses.insert(this);
value = refVal;
}
@@ -206,7 +206,7 @@ ValueDef::replace(const ValueRef &...
2009 Dec 22
0
Reshpaing for xyplot() or ggplot()
...0.40 0.86
4 4 65 72 72 102 111.0 135 0.06 0.14 0.11 0.14 0.18
5 5 142 95 112 176 161.5 133 0.42 0.22 0.31 0.56 0.86
6 6 89 113 112 125 128.0 195 0.42 0.47 0.20 0.24 0.43
but I'm stuck there. I think that I would need something like
color XR XG XB L1_1 L1_2 L1_3 RefVal Band
1 1 87 55 62 116 124.0 100 0.07 B
2 2 164 125 134 204 203.0 153 0.24 B
3 3 118 64 98 157 101.0 139 0.34 B
4 4 65 72 72 102 111.0 135 0.06 B
5 5 142 95 112 176 161.5 133 0.42 B
6 6 89 113 112 125 128.0 195 0.42 B
...
so that...