Displaying 4 results from an estimated 4 matches for "const2".
Did you mean:
const
1999 Oct 10
1
substituting values into a function
Hi everybody,
In Splus, the following works fine.
foo1 <- function(x, const)
x + const
foo2 <- function(x, const)
x * const
const1 <- 1
const2 <- 2
foo <- substitute(function(x) {
a <- foo1(x, const1)
b <- foo2(a, const2)
b
}, list(const1=const1, const2=const2))
foo(1:3)
In R, the code doesn't work, as foo is of mode "call", and
as.function(foo) gives an error. I could add the arguments const1 and
c...
2005 Jul 13
1
Fieller's Conf Limits and EC50's
...pha<-1-conf.level
zalpha.2 <- -qnorm(alpha/2)
gamma <- zalpha.2^2 * var.b1 / (b1^2)
eta = family(obj)$linkfun(p) #based on calcs in V&R's dose.p
EC50 <- (eta-b0)/b1
const1 <- (gamma/(1-gamma))*(EC50 + cov.b0.b1/var.b1)
const2a <- var.b0 + 2*cov.b0.b1*EC50 + var.b1*EC50^2 -
gamma*(var.b0 - cov.b0.b1^2/var.b1)
const2 <- zalpha.2/( (1-gamma)*abs(b1) )*sqrt(const2a)
LCL <- EC50 + const1 - const2
UCL <- EC50 + const1 + const2
conf.pts <- c(LCL,EC50,UCL...
2006 Sep 13
1
[Fwd: Re: [Swig-user] wrapping enums for python]
...g lists, search for xml and robin dunn
probably. The last post was not more than a month ago.
All in all I really like your idea, I thought about something similar some
way back. You could extend your Enum class to cover operations such as
or''ing together some elements (like const1 | const2).
Personally I''d like to see this approach here as standard swig behaviour.
What do you (other language maintainers for example) think?
-Matthias
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, se...
2005 Apr 28
0
[LLVMdev] SimplifyLibCalls Pass -- Help!
...set:
* memset(s,c,0) -> noop
* memset(s,c,n) -> store s, c
(for n=1,2,4,8)
pow, powf, powl:
* pow(1.0,y) -> 1.0
* pow(x,0.0) -> 1.0
* pow(x,1.0) -> x
* pow(x,-1.0) -> 1.0/x
* pow(x,0.5) -> sqrt(x)
* pow(cst1,cst2) -> const1**const2
* pow(exp(x),y) -> exp(x*y)
* pow(sqrt(x),y) -> pow(x,y*0.5)
* pow(pow(x,y),z)-> pow(x,y*z)
puts:
* puts("") -> fputc("\n",stdout) (how do we get "stdout"?)
round, roundf, roundl:
* round(cnst) -> cnst'
signbit:
* signbit(cns...