Displaying 3 results from an estimated 3 matches for "rbest".
Did you mean:
best
1997 Sep 05
2
R-beta: help with R simulation
...095)
sy2<-sy1+jump
sy2<-ifelse(sy2>4095, sy2-4096,sy2) #wrap around
#put noise and signal dots together
tx1<-c(nx1,sx1)
tx2<-c(nx2,sx2)
ty1<-c(ny1,sy1)
ty2<-c(ny2,sy2)
#compute distance to nearest neighbour (x and y) in frame 2
#for each dot in frame 1
for(i in 1:ntotal)
{
rbest<-2*(4096^2)
for(j in 1:ntotal)
{
xd<-tx2[i]-tx1[j]
yd<-ty2[i]-ty1[j]
rr<-xd^2 + yd^2
if(rr<rbest)
{
rbest<-rr
x.temp<-xd
y.temp<-yd
}
}
x<<-c(x,x.temp)
y<<-c(y,y.temp)
}
}
sim<-function(nnoise, nsignal, jump)
{
xm<<-N...
1998 Jul 09
1
numeric(0) -> NA
...)
nx2<-round(runif(nnoise,0,4095))
ny1<-round(runif(nnoise,0,4095))
ny2<-round(runif(nnoise,0,4095))
#generate signal dots
sx1<-round(runif(nsignal,0,4095))
...
and I need to do do.sim(0,1000,10). But that gives me NAs which are a
problem later. (in particular, I can't do
if(rr<rbest)
if rr is computed from an NA.)
BTW I think it is a ghastly waste of resources to do
round(runif(nnoise,0,4095))
but I couldn't think of a better way to get ints between 0 and 4095.
(It's a waste because the random number generator makes unsigned long ints
to begin with, then they are divi...
2009 Dec 11
7
Doing ZFS rollback with preserving later created clones/snapshot?
Hi.
Is it possible on Solaris 10 5/09, to rollback to a ZFS snapshot,
WITHOUT destroying later created clones or snapshots?
Example:
--($ ~)-- sudo zfs snapshot rpool/ROOT at 01
--($ ~)-- sudo zfs snapshot rpool/ROOT at 02
--($ ~)-- sudo zfs clone rpool/ROOT at 02 rpool/ROOT-02
--($ ~)-- LC_ALL=C sudo zfs rollback rpool/ROOT at 01
cannot rollback to ''rpool/ROOT at 01'': more