Displaying 4 results from an estimated 4 matches for "1e99".
Did you mean:
1,99
2003 Apr 22
3
lexical scope
Hi everyone
another documented feature that was a bit unexpected for me:
R> x <- 19
R> f <- function(t){t+x}
R> f(100)
[1] 119
--as expected: x is visible from within f()
..but...
R> g <- function(a){x <- 1e99 ; return(f(a))}
R> g(4)
[1] 23
--the "x" that is visible from within g() is just 19, which is not the
one I expected it to find.
R> rm(x)
R> g(4)
Error in f(a) : Object "x" not found
--g() looks in the first search path place and finds it empty,
returning an err...
2004 Dec 19
0
[patch] more ffmpeg2theora improvements
...this->aspect_numerator=0;
this->aspect_denominator=0;
@@ -150,6 +157,21 @@
int64_t frame_number=0;
double fps = 0.0;
+ /* 20041216/DK variables that help us keep track of A/V sync */
+ double v_pts_out = 0.0;
+ double v_pts_in = 0.0;
+ double a_pts_out = 0.0;
+ double v_pts_delta = 1e99;
+ double v_pts_delta_new = 0.0;
+ double a_pts_delta = 0.0;
+ double framesync = 0.0;
+ double was_framesync = 0.0;
+ int frameadjust = 0;
+ const double v_pts_smoothness = 8;
+ double max_good_framesync_change = 0.5;
+ const double framesync_thresh = 0.6;
+ int j;
+
for (i = 0; i < this->...
2009 Apr 04
1
Problem with sample()
...rom SMfSB, D.J. Wilkinson)
gillespied=function (N, T=100, dt=1, ...)
{
tt=0
n=T%/%dt
x=N$M
S=t(N$Post-N$Pre)
u=nrow(S)
v=ncol(S)
xmat=matrix(0,ncol=u,nrow=n)
i=1
target=0
repeat {
h=N$h(x, ...)
h0=sum(h)
if (h0<1e-10)
tt=1e99
else
tt=tt+rexp(1,h0)
while (tt>=target) {
xmat[i,]=x
i=i+1
target=target+dt
if (i>n)
return(ts(xmat,start=0,deltat=dt))
}
j=sample(v,1,prob=h) #################error###########
x=x+S[,j]
}
}
#Set initial p...
2012 May 23
2
Bug#674088: xcp-xapi: vbd-plug to dom0 does not creates /dev/xvd* devices in dom0
...ae-43c3af049f15', 'vdi_on_boot': 'persist', 'args': ['true'], 'vdi_location': 'c95af56f-799f-49ad-a64f-82eca3299b50', 'host_ref': 'OpaqueRef:5005b228-e50d-0d6b-e4f9-8d85794ba15c', 'session_ref': 'OpaqueRef:4a336c86-82a9-1e99-f066-41015d88fec4', 'device_config': {'SRmaster': 'true', 'location': '/mnt'}, 'command': 'vdi_activate', 'vdi_allow_caching': 'false', 'sr_ref': 'OpaqueRef:a979869b-1538-51ff-39ab-3ddafc767cd2', 'vdi_uu...