search for: fxy

Displaying 15 results from an estimated 15 matches for "fxy".

Did you mean: fly
2008 Mar 25
3
derivatives in R
Hi, I posted this message earlier in "Rmetrics" and I don't know whether I posted in the wrong place, so I'm posting it again in Rhelp. I have a function in x and y and let's call it f(x,y). I need to get the Hessian matrix. i.e I need (d^2f/dx^2), (d^2f/dxdy), (d^2f/dydx), (d^2f/dy^2).I can get these using the D function. now I need to evaluste the hessian matrix for
2010 Jul 22
1
class
Hello,   ###  I created two classes "A" and "B". "A" is the superclass of "B".   setClass("A", representation(s1="numeric"),prototype=prototype(s1=8)) setClass("B",contains="A",representation(s2="character"),prototype=list(s2="hi")) myA=new("A") myB=new("B")   ####  I created
2017 Mar 19
2
outer not applying a constant function
Hi, the function outer can not apply a constant function as in the last line of the following example: > xg <- 1:4 > yg <- 1:4 > fxyg <- outer(xg, yg, function(x,y) x*y) > fconstg <- outer(xg, yg, function(x,y) 1.0) Error in outer(xg, yg, function(x, y) 1) : dims [product 16] do not match the length of object [1] Of course there are simpler ways to construct a constant matrix, that is not my point. It happens for me...
2001 Nov 05
1
Why doesn't outer work?
...t;-function(x,y) { sigmax2<-p.vec[7]; sigmax<-sqrt(sigmax2); mux<-p.vec[5]+p.vec[6]*x; fac1<-sqrt(2*pi)*sigmax; fac2<-((y-mux)^2)/(2*sigmax2); return(exp(-fac2)/fac1); } #survival-growth function pxy<-function(x,y) { return(sx(x)*(1-fx(x))*gxy(x,y)) } #fecundity function fxy<-function(x,y) { nkids<-p.est*exp(p.vec[8]+p.vec[9]*x); kidsize.mean<- p.vec[10]; kidsize.var<- p.vec[11]; fac1<-sqrt(2*pi)*sqrt(kidsize.var); fac2<-((y-kidsize.mean)^2)/(2*kidsize.var); f<-fx(x)*nkids*exp(-fac2)/fac1; return(f); } # Part (III) ########################...
2004 Jul 09
3
Reproducible Rterm crash. (PR#7072)
...le.draping2 in the trellis library. example.bivariate.normal <- function(rho=0, layout.in=c(3,3), lwd.in=.1, col.regions.in=trellis.par.get("regions")$col) { old.par <- par(lwd=lwd.in) on.exit(par(old.par)) x <- seq(-2, 2, length=33) y <- x fxy <- 1/(2*pi*sqrt(1-rho^2)) * exp(-.5/(1-rho^2) * outer(x^2, y^2, "+") - 2*rho*outer(x,y,"*")) angle <- c(22.5, 67.5, 112.5, 337.5, 157.5, 292.5, 247.5, 202.5) Angle <- rep(angle, rep(length(fxy), 8)) Viewing.Angle <- ordered(Angle, angle) wireframe(rep(fxy...
2017 Mar 20
1
outer not applying a constant function
...at> >>>>>> on Sun, 19 Mar 2017 09:14:56 +0000 writes: > > > Hi, > > the function outer can not apply a constant function as in the last line of the following example: > > >> xg <- 1:4 > >> yg <- 1:4 > >> fxyg <- outer(xg, yg, function(x,y) x*y) > >> fconstg <- outer(xg, yg, function(x,y) 1.0) > > Error in outer(xg, yg, function(x, y) 1) : > > dims [product 16] do not match the length of object [1] > > > Of course there are simpler ways to construct a...
2015 Jul 27
0
[LLVMdev] Let expressions at file scope combined with defm
Hi all, I try to run such a line in TableGen but seems it's not working. What is the problem with this code? multiclass cond { let Inst{1-0}=0b11 in defm fxy: ConditionalALU; .... } I receive this error: test.td:162:11: error: expected '=' in let expression let Inst{1-0}=0b11 in defm fxy: ConditionalALU; ^ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-...
2017 Mar 20
0
outer not applying a constant function
...lbrecht <Albrecht.Gebhardt at aau.at> >>>>> on Sun, 19 Mar 2017 09:14:56 +0000 writes: > Hi, > the function outer can not apply a constant function as in the last line of the following example: >> xg <- 1:4 >> yg <- 1:4 >> fxyg <- outer(xg, yg, function(x,y) x*y) >> fconstg <- outer(xg, yg, function(x,y) 1.0) > Error in outer(xg, yg, function(x, y) 1) : > dims [product 16] do not match the length of object [1] > Of course there are simpler ways to construct a constant matrix, that is...
2005 Apr 04
5
a question about box counting
Hi, I have a set of x,y data points and each data point lies between (0,0) and (1,1). Of this set I have selected all those that lie in the lower triangle (of the plot of these points). What I would like to do is to divide the region (0,0) to (1,1) into cells of say, side = 0.01 and then count the number of cells that contain a point. My first approach is to generate the coordinates of these
2012 Dec 06
1
Fuction Error
...ata library(quantmod) library(PerformanceAnalytics) symbols <- c('XLE','XLV','XLI','XLU','XLP','IYZ','XLK','XLY','XLF','XLB','GLD','SLV','E FA','EEM','FXA','FXE','FXY','HYG','LQD', '^GSPC') getSymbols(symbols,from='2007-01-01') getSymbols('SPY',from='2007-01-01') SP500 <- Cl(SPY) colnames(SP500)[1] <- 'SPY' #Function to build a dataframe form a list of symbols symbolFrame <- function(symb...
2006 Jul 26
1
Installation package of R-GUI (PR#9098)
Full_Name: Fr?d?ric Moser Version: R-GUI, the last one OS: Macosx 10.4.7 Submission from: (NULL) (83.228.155.25) The installer say that I can't install R-GUI, because I don't have Macosx 10.4.4 installed, but my powerbook g4 1.33ghz run the 10.4.7 ... Strange :P Thanks, and R for mac os x looks great ! FXI
2004 Mar 11
4
Summary: do.call and environments
To use the modify the solution from Tony and I so that you can pass the name of the function, rather than the function itself, like this: x <- 7 fx <- function(y) print(x*y) f <- function(fun, x) { fun <- get(fun) environment(fun) <- environment() do.call("fun",list(3)) } f("fx",2) --- Date: Thu, 11 Mar 2004 08:22:45 +0100 From:
2014 Feb 25
12
[PATCH 0/8] virt-builder: use .conf files for configuration
Hi, attached there is a serie of patches that completes the work on making virt-builder use .conf files, shipped in XDG directories, to configure all the available sources of indexes used. This also removes the hardcoded default location, replaced now with a configuration file (which may be not used at all). Thanks, Pino Toscano (8): builder: allow "no key" as key in Sigchecker
2003 Apr 24
2
R-1.7.0 build feedback: NetBSD 1.6 (PR#2837)
R-1.7.0 built on NetBSD 1.6, but the validation test suite failed: Machinetype: Intel Pentium III (600 MHz); NetBSD 1.6 (GENERIC) Remote gcc version: gcc (GCC) 3.2.2 Remote g++ version: g++ (GCC) 3.2.2 Configure environment: CC=gcc CXX=g++ LDFLAGS=-Wl,-rpath,/usr/local/lib make[5]: Entering directory `/local/build/R-1.7.0/src/library' >>> Building/Updating
2008 Apr 06
7
Where is the Digium DS3 card?
Any know what Digium hasn't released the DS3 card? It was supposed to be out a while ago. -Matt