search for: glub

Displaying 6 results from an estimated 6 matches for "glub".

Did you mean: glib
2006 Sep 15
1
setMethod() woes
Hello everybody R version 2.4.0 alpha (2006-09-15 r39323), MacOSX 10.4.7 Next S4 problem. I have "brob" objects that are large real numbers, and now I want "glub" numbers that are to be a pair of glubs that represent complex numbers. I want to define binary operator "+" so that if either the left or right argument are glubs, it uses .ArithGlub. If either argument is a brob (but neither is a glub), use .ArithGlub If neither is a brob or a...
2012 Sep 28
1
ConfBridge dtmf_passthrough=no doesn't have any effect. Bug?
Hi list! ConfBridge dtmf_passthrough=no doesn't seem to have any effect. DTMF gets transmitted throughout the conference. I've tried Asterisk 10.7.1 from the official RPMs and 10.8.0 compiled from source. I've confirmed that it's disabled via the CLI "confbridge show profile user <profilename>". It's an all-SIP scenario with RFC2833 as the DTMF protocol.
2019 Feb 03
1
Inefficiency in df$col
...frame, as in expressions such as df$col[i], which I think are very common (the alternatives of df[i,"col"] and df[["col"]][i] are, I think, less common). Here is the setup for an example showing the issue: L <- list (abc=1:9, xyz=11:19) Lc <- L; class(Lc) <- "glub" df <- data.frame(L) And here are some times for R-3.5.2 (r-devel of 2019-02-01 is much the same): > system.time (for (i in 1:1000000) r <- L$xyz) user system elapsed 0.086 0.004 0.089 > system.time (for (i in 1:1000000) r <- Lc$xyz) user system ela...
2006 Oct 31
1
setReplaceMethod
...tive <- rep(positive,length(x)) } new("brob",x=as.numeric(x),positive=positive) } "as.brob" <- function(x){ if(is.brob(x)){ return(x) } else if(is.complex(x)) { warning("imaginary parts discarded") return(Recall(Re(x))) } else if(is.glub(x)){ warning("imaginary parts discarded") return(Re(x)) } else { return(brob(log(abs(x)), x>=0)) } } setMethod("[", "brob", function(x, i, j, drop){ brob(x at x[i], x at positive[i]) } ) setReplaceMethod(&quo...
2007 Jan 12
0
Dummy's guide to S4 methods: package Brobdingnag
...lo List. please find uploaded to CRAN a new package, Brobdingnag. This package does two things: (1) allows computation of very large numbers using a logarithmic representation. (2) provides a "Hello, World" example of S4 methods in use: there are two classes of object (brob and glub) and one virtual class (swift). The package includes a vignette that is a step-by-step guide to using S4 methods in the context of an R package. Enjoy Robin -- Robin Hankin Uncertainty Analyst National Oceanography Centre, Southampton European Way, Southampton SO14 3ZH, UK tel 023-8...
2007 Aug 30
7
Behaviour of very large numbers
Dear all, I am struggling to understand this. What happens when you raise a negative value to a power and the result is a very large number? B [1] 47.73092 > -51^B [1] -3.190824e+81 # seems fine # now this: > x <- seq(-51,-49,length=100) > x^B [1] NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN <snip> > is.numeric(x^B) [1] TRUE > is.real(x^B) [1]