search for: ff2

Displaying 20 results from an estimated 31 matches for "ff2".

Did you mean: f2
2009 Jun 03
2
code for double sum
Hi R-users,   I wrote a code to evaluate double sum as follows:   ff2 <- function(bb,eta,z,k) { r <- length(z) for (i in 1:r) { sm1 <- sum((z[i]*bb/2)*(psigamma((0:k)+eta+1,deriv=0)/(factorial(0:k)*gamma((0:k)+eta+1))))  sm2 <- sum((besselI(z[i]*bb,eta)*log(z[i]*bb/2) - sm1)/besselI(z[i]*bb,eta))  sm2 } ff2(bb,eta,z,10)     but it gave me the following m...
2008 Mar 25
6
Prototype 1.6.0.2 + Firefox 3 Enumerable problems
I am using Prototype 1.6.0.2 on Firefox 3.0b4. The following does not work when I enter it in Firebug: $A([1,2,3,4]).each(function(n) {alert(n);}); The above is just an example. Any array, using $A and any enumerable method, returns the following: TypeError: iterator.bind is not a function Seems like some objects are not being extended correctly? Using Prototype 1.5.0 on Firefox 3.0b4, this
2007 Nov 07
1
Aggregate with non-scalar function
R-Helpers, I'm sorry to have to ask this -- I've not used R very much in the last 8 or 10 months, and I've gotten rusty. I have the following (ff2 is a subset of a much, much larger dataset): > ff2 hostName user sys idle obsTime 10142 fred 0.4 0.5 98.0 2007-11-01 02:02:18 16886 barney 0.5 0.2 94.6 2007-10-25 19:12:12 8795 fred 0.0 0.1 99.8 2007-10-30 05:08:22 5261 fred 0.1 0.2 99.7 2007-10-25 07:20:32...
2009 Feb 25
1
monotonic GAM with more than one term
...bin = FF$b ) p<-pcls(G) # fit spline (using s.p. from unconstrained fit) fv<-Predict.matrix(sm,data.frame(x=x))%*%p # can we do this without calling smoothCon directly ? # also having trouble here. f.nofit<-gam(y~m+s(x,k=10,by=m,bs="cr"),fit=FALSE) FF2 <- mono.con(f.nofit$smooth[[1]]$xp) stopifnot(identical(FF, FF2)) G2 <- list(y = f.nofit$y, w = f.nofit$w, X = f.nofit$X, C = f.nofit$C, S = f.nofit$smooth[[1]]$S, off = f.nofit$off, sp = f.ug$sp,...
2008 Mar 21
4
Prototype.js event.stop(event) FF2 not working
stop: function(event) { if (event.preventDefault) { event.stopPropagation(); event.preventDefault(); } else { event.returnValue = false; event.cancelBubble = true; } } /* br original stop: function(event) { Event.extend(event); event.preventDefault(); event.stopPropagation(); event.stopped = true; } */ };
2013 Feb 04
2
Modifying a function programmatically
...- as.expression(body(ff))) expression({ a + b + c }) (expr2 <- do.call("substitute", list(expr1[[1]], vals))) { 1 + b + c } # This "works", eval(expr2, list(b=10,c=12)) [1] 23 # - but I would like a function. Hence I do: ll <- alist(b=, c=, eval(expr2)) ff2 <- as.function(ll) ff2(b=10,c=12) [1] 23 # BUT I am only half-way where I want to be because the alist(b=, c=, ...) # requires me plugin the remaining formals by hand. I do: newformals <-setdiff(names(formals(ff)), names(vals)) vv <- vector("list", length(newforma...
2007 Dec 06
11
Weird Prototype behavior
...ead> <body> <input type=''text'' name=''login_username'' id=''login_username_index'' /> </body> </html> IE6 alerts "[object]". IE7 alerts "[object]". Opera 9 alerts "[object HTMLInputElement]". FF2 alerts "null". If I change the name of the input element from "login_username" to anything else, all browsers alert "null". Why is the dollar function reading the name attribute instead of the id? The way I''ve always understood it, the dollar function ignores...
2007 Jun 14
6
Firefox and Thunderbird 2.0, Centos 5, and rpms
I am making some progress on my Centos 5 notebook build. So I am looking at Firefox and Thunderbird 2.0. Should I install them? Or is Redhat correct that there is nothing improved here and wait for 3.0? (well I have not even had a chance to look at Thunderbird 2.0, that is new)? I have the install steps we covered here back on 2/2/07; but are there rpms? I did not find anything over at
2009 Mar 23
4
newton method
Hi R-users, Does R has a topic on newton's method? Thank you for the info.
2012 Oct 19
2
MLE of negative binomial distribution parameters
I need to estimate the parameters for negative binomial distribution (pdf) using maximun likelihood, I also need to estimate the parameter for the Poisson by ML, which can be done by hand, but later I need to conduct a likelihood ratio test between these two distributions and I don't know how to start! I'm not an expert programmer in R. Please help -- View this message in context:
2008 Jun 20
3
FF3 printing problem on Centos 4.x
...long time, and it tends to work just fine. yesterday I installed the new FF3 release. It works fine too, with one exception: The print dialog shows no printers! The print button is greyed out! There actually four or five printers defined on the system, and all other apps find them fine, including FF2. So far no one has replied to my query on the mozillazine forums. Anyone here got any suggestions I can try? Thanks! -- ---- Fred Smith -- fredex at fcshome.stoneham.ma.us ------------------------ ---- Do you not know? Have you not heard? The LORD is the everlasting God,...
2008 Jan 31
2
Odd things happening in ie6/ie7
As always, i am again having problems in IE6 and IE7 with scripts. The scripting works fine in FF2, opera and Safari. IE just wont load it. Could anyone help? It''s a static page for now, located at www.maifith.com/research/index.html The problem,although quite obvious, is that it doesn''t load the JS in IE6 or IE7. Any help would be appreciated. --~--~---------~--~----~----...
2012 May 22
2
Creating functions with a loop.
Hi I am trying to create n functions where each function is defined in function one step before, i.e. something like ff.k(x) = ff.j(x) - sum(1:j), for j=k-1 Is it possible? If it isn't and I manually create each function then is their a way to call them through a loop? My objective is to calculate something like result.k = ff.k(x1)/ff.k(x2) for k in 2:n Thank you for your time,
2007 Mar 04
23
Sound support for script.aculo.us
...alling back on using whatever plugin is used for audio/mpeg on other browsers (in real world terms, this means QuickTime or a QuickTime- compatible plugin). Thanks to Jules Gravinese of http://www.webveteran.com/ for coming up with the initial idea and code for this. Tested and works in IE7, FF2, Safari. You can have a look at this by grabbing the latest SVN trunk, and summoning the sound_test.html functional test file. Note that this feature isn''t meant for any heavy-duty music playback, but just for little sound effects that enhance the user experience. Some examples of...
2005 Apr 20
3
Keeping factors with zero occurrences in "table" output
Dear R group, I have a data frame which contains data on preferences on 7 items (ranks 1 through 7) listed by each participant. I would like to tabulate this in a 7x7 table where the rows would be the items and the columns would be the number of times that item received a particular rank. I tried doing this by creating a matrix by "rbind"ing each vector obtained using
2008 Mar 25
2
a JavaScript front-end for Babelmark
...ere: http://attacklab.net/babelmark/ If either Michel or Tom is interested in hosting this, I'll be happy to do the grunt work for a real integration. It's kind of pain in the ass to hit the bookmarklet every time you get new data from the server. I've tested this in Safari 3.1, FF2/Mac, FF3/Mac, and IE7. Email me if you have any problems. -John
2007 Oct 16
3
hide is not a function
I''m using FF2 + prototype 1.5.1 this small line is giving me a problem: $$("#splash- description .buy").hide(); Firebug says this: $$("#splash-description .buy").hide is not a function if I use a single $ the the hide() function seems to work... why is this function now working for th...
2009 Aug 07
1
Gauss-Laguerre using statmod
I believe this may be more related to analysis than it is to R, per se. Suppose I have the following function that I wish to integrate: ff <- function(x) pnorm((x - m)/sigma) * dnorm(x, observed, sigma) Then, given the parameters: mu <- 300 sigma <- 50 m <- 250 target <- 200 sigma_i <- 50 I can use the function integrate as: > integrate(ff, lower= -Inf, upper=target)
2013 Feb 16
1
[LLVMdev] A weird problem when try to output operand of instruction involving function pointer in a struct
...(); opi!=opie; ++opi){ if (Instruction *Op = dyn_cast<Instruction>(*opi)){ errs() <<Op->getOperand(0)->getName() <<", "; }else{ errs() <<"noti\n"; } } } } } } The output is: In function: main A, indirect call: tt1, indirect call: ff2, indirect call: tt4, indirect call: ppp, indirect call: kkk, You can find that there is a number after tt and ff, I have no idea where they are coming from. Can anyone give some hint? Thanks. Robert -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists....
2008 Jan 31
3
Multiple form weirdness in IE6
...is clicked, an alert pops up saying "I am in button1Func", but then the status bar says it is calling the action for the first form and not the second. When I move the first form to the bottom of the page, the first button works correctly. What is going on here? It seems to work ok in FF2 and IE7. Thanks, Rob --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsu...