Displaying 20 results from an estimated 300 matches similar to: "round() doesn't (PR#1139)"
2002 Jan 16
0
round() doesn't (PR#1139)
Hi, all,
In PR#1138 and PR#1139, I pointed out that round() with digits<0 would not
actually round to an integer. Brian D. Ripley (hereafter BDR) fixed it in
R-1.4.0, but the fix introduced a new error, PR#1254 (caught by Ole
Christensen). BDR (I'm guessing) fixed the fix; here's the relevant line from
fround.c:
if(dig <= 0 && fabs(res) < 1e9) res = (int)floor(res +
2018 Jul 10
1
problem with display of complex number
Hi,
> 1e10+5i
[1] 1e+10+0e+00i
> Im(1e10+5i)
[1] 5
maybe little better...
--- R-3.5.1.orig/src/main/complex.c 2018-03-26 07:02:25.000000000 +0900
+++ R-3.5.1/src/main/complex.c 2018-07-10 12:50:42.523874767 +0900
@@ -381,6 +381,7 @@
r->i = fround(pow10 * x->i, digits)/pow10;
} else {
digits = (double)(dig);
+ if(digits < 1) digits=1; /* a little better */
2001 Oct 22
3
round() doesnt (PR#1138)
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
2010 Jan 10
2
app_swift 1.6.2 DTMF issue
With app_swift 1.6.2 + asterisk 1.6.1.12, I've found that if you
enter DTMF during cepstral playback, the first digit of ${SWIFT_DTMF}
is [un]set in an odd way.
for example consider:
999,1,Swift(some long message that you dont want to wait for|5000|5)
999,n,NoOp(DTMF: ${SWIFT_DTMF})
if while I am listening to the playback, i interrupt and dial:
- "12345", SWIFT_DTMF is set to
2012 Nov 17
2
problem with "any" function
Dear R users,
I have the "any" function of R
any(ind.c, ind.r, ind.sgn)
all are logical factors
it works fine when any of three is true
but when they are combined it doesnt work.
i tried
this
any(ind.c, ind.r, ind.sgn,((ind.c==TRUE) & (ind.r==TRUE)),
((ind.c==TRUE) & (ind.sgn==TRUE)),((ind.r==TRUE) & (ind.sgn==TRUE)),
((ind.c==TRUE) & (ind.r==TRUE) &
2017 Jan 23
2
Changes to TableGen in v4.0?
I am trying to upgrade to the LLVM v4.0 branch, but I am seeing failures in
my TableGen descriptions for conversion from FP32 to FP16 (scalar and
vector).
The patterns I have are along the lines of:
[(set (f16 RF16:$dst), (fround (f32 RF32:$src)))]
or:
[(set (v2f16 VF16:$dst), (fround (v2f32 VF32:$src)))]
and these now produce the errors:
error: In CONV_f32_f16: Type inference
2015 Aug 19
3
[RFC] Improving integer divide optimization (related to D12082)
Hello LLVM, A recent commit creates the isIntDivCheap() target query.
http://reviews.llvm.org/D12082
The current approach has a couple shortcomings.
First, when targets decide divide is cheap, the DAGCombiner ignores
obvious power-of-2 optimizations. In the targets I know, shifts are
cheaper than divides in both speed and size. The target cannot see
the value in the isIntDivCheap() call, so
2013 Jun 17
1
Cisco SSCP to SIP
Hi all,
I'm trying to convers some Cisco SSCP phones to the SIP formware. The phone boots, I see it tries to fetch a bunch of files on my TFTP:
Jun 17 09:37:45 firewall dnsmasq-dhcp[21202]: DHCPACK(eth2) 192.168.10.103 6c:50:4d:da:f0:67 SEP6C504DDAF067
Jun 17 09:38:10 firewall in.tftpd[22666]: RRQ from 192.168.10.103 filename CTLSEP6C504DDAF067.tlv
Jun 17 09:38:10 firewall in.tftpd[22666]:
2007 Jun 14
1
back-transform predictors for x-axis in plot -- mgcv package
My question is related to plot( ) in the mgcv package. Before modelling
the data, a few predictors were transformed to normalize them.
Therefore, the x-axes in the plots show transformed predictor values.
How do I back-transform the predictors so that the plots are easier to
interpret?
Thanks in advance,
Suzan
--
Suzan Pool
Oregon State University
Cooperative Institute for Marine
2005 Jun 09
1
PHPAGI Swift Escape Digits
I am trying to use swift in PHP/AGI.
function swift($text, $escape_digits='', $frequency=8000, $voice=NULL,
$fnameIn='')
During swift speaking some text I want the caller to be able to press
1, 2 or 3 to do thing 1, thing 2 or thing 3.
How are these digit defines and then caught?
Thanks,
Michael
2012 Nov 18
1
i want to put the results of the list in a for loop
Dear R users,
i want to put the results of a list to a for loop.
i will give an example
m1<-matrix(rep(1,15),ncol=5)
ind.sgn <- lapply(1:ncol(m1), combn, x = ncol(m1))
ind.sgn
[[1]]
[,1] [,2] [,3] [,4] [,5]
[1,] 1 2 3 4 5
[[2]]
[,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10]
[1,] 1 1 1 1 2 2 2 3 3 4
[2,] 2 3 4 5
2011 Jun 25
1
Cisco IP Phones and Skinny in asterisk 1.8.4.2 "tooooooooooooooooo"
Hi All;
Again, the Cisco IP Phones 7942G and using Skinny:
I upgraded the firmware to version 8.5 (skinny) and I am using skinny channel (chan_skinny) and the skinny.conf file.
The phones are registering, but when we use them to place a call, we only hear tooooooooooo in the handset and we do not hear voice (even when we dial the digits, we only hear toooooooo .. but it dials and destination
2006 Jun 23
1
How to use mle or similar with integrate?
Hi
I have the following formula (I hope it is clear - if no, I can try to
do better the next time)
h(x, a, b) =
integral(0 to pi/2)
(
(
integral(D/sin(alpha) to Inf)
(
(
f(x, a, b)
)
dx
)
dalpha
)
and I want to do an mle with it.
I know how to use mle() and I also know about integrate(). My problem is
to give the parameter values a and b to the
2013 Apr 25
10
[PATCH v4 0/3] Btrfs: quota rescan for 3.10
The kernel side for rescan, which is needed if you want to enable qgroup
tracking on a non-empty volume. The first patch splits
btrfs_qgroup_account_ref into readable ans reusable units. The second
patch adds the rescan implementation (refer to its commit message for a
description of the algorithm). The third patch starts an automatic
rescan when qgroups are enabled. It is only separated to
2005 Jun 29
6
x*x*x*... vs x^n
Hi
I have been wondering if there one can speed up calculating small powers
of numbers such as x^8 using multiplication.
In addition, one can be a bit clever and calculate x^8 using only 3
multiplies.
look at this:
> f1 <- function(x){x*x*x*x*x*x*x*x}
> f2 <- function(x){x^8}
> f3 <- function(x){x2 <- x*x;x4 <- x2*x2;return(x4*x4)}
[so f1() and f2() and f3() are
2014 May 14
1
large integer values
Dear devels,
I need to create a (short) vector in C, which contains potentially very
large numbers, exponentially to the powers of 2.
This is my test example:
lgth = 35;
int power[lgth];
power[lgth - 1] = 1;
for (j = 1; j < lgth; j++) {
power[lgth - j - 1] = 2*power[lgth - j];
}
Everything works ok until it reaches the limit of 2^32:
power: 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024,
2009 Jul 31
2
[LLVMdev] llvm-gcc build of inferno/plan 9 'mk' fails
hello,
I'm attempting to build the inferno source tree using either of native
LTO or jit'd bins and having no obvious luck.
im using macports (current as of this email) llvm-2.5 and llvm-gcc on
a macbook pro (x86)
following the inferno directions verbatim will use 'cc' as the
compiler and just works.
the build tools are different from the naive build tools as follows:
2004 Dec 30
3
labels and counting
Hello,
I have got the following problem:
given is a large string sequence consisting of the four letters "A" "C"
"G" and "T" (as before). Additionally, I have got a second string
sequence of the same length giving a label for each character. The
labels are "+" and "-".
Now I would like to create an 8x8 matrix which contains the
2012 May 08
1
Error with psi value for 'segmented' package for R
Hi everyone,
while trying to use 'segmented' (R i386 2.15.0 for Windows 32bit OS) to determine the breakpoint I got stuck with an error message and I can't find solution. It is connected with psi value, and the error says:
Error in seg.glm.fit(y, XREG, Z, PSI, weights, offs, opz) :
(Some) estimated psi out of its range
This is the code I am using:
2001 Feb 06
2
X11 warnings about "wrong" font sizes (PR#840)
Hi. This is cosmetic in nature, yet annoying as the warning points
to the wrong source: On a screen running on an X server with 100 DPI,
I always got warnings about X11 using the wrong font size:
> x11()
Warning message:
X11 used font size 17 when 12 was requested
Then I looked at the code and X11 is _not_ to be blamed for this:
R resets the requested font size for 100 DPI screens! There