search for: ball

Displaying 20 results from an estimated 1254 matches for "ball".

Did you mean: all
2006 Feb 28
3
EventPublisher (contribution)
...ent, and pass any arguments to those handlers that you want. The file is attached (sans the ".js" extension to get past my company''s firewall, just re-add that once you have the file, replacing the ".txt"). USAGE: Let''s say you have an object called BouncingBall, and you''d like to fire notification events every time the ball bounces. To enable this, just extend BouncingBall to inherit from EventPublisher, and then use the fireEvent method... Object.extend(Object.extend(BouncingBall.prototype, EventPublisher.prototype), { initialize: function...
2008 Jul 19
2
OT Astricon/Digium Beach Ball Mailing
Just an FYI for Digium. I received a mailing today from you guys which was nice. The price of mailing was ~$1.60 and inside was an inflatable beach ball. Cool, but I tried to blow up the beach ball and the the seam where the part opens to inflate the ball was not connected to the ball whatsoever, so it went right in the trash. I wonder if the sick heat had anything to do with it, was mine just bad, or should Digium get a refund from the promotion...
2008 Apr 03
3
Overloading and wrapping an association method
Hi all: For example I have: class Color < ActiveRecord::Base belongs_to :ball end class Ball < ActiveRecord::Base has_many :colors end What I want to do is to write a method that: 1. takes the result of Ball#colors, which is an array of Color objects 2. do something with the array 3. return the result but I want to name my method Ball#colors, i.e. I want to overload...
2003 Oct 01
1
hypergeometric & population estimates
...es using maximum likelihood and 95%CL as -2LogLikelihoods. Below, I determined the population estimate using dhyper(x,m,n,k) and maximizing the density value as a function of n, but do not know how I should calculate MLE with this distribution. x <- 8 # number resighted caribou (white balls drawn) m <-11 # number collared caribou (white balls total) k <- 70 # number caribou seen (# balls drawn) n <- 1:500 # ?? unknown number of uncollared caribou (# black balls) d <- unlist(lapply(n, function(i) dhyper(x,m,i,k))) # density estimate for each value...
2012 Oct 01
1
Retrieve hypergeometric results in large scale
I'm going to use dhyper(x, m, n, k) to get a 95% coverage. Let me use an example to explain my problem: Suppose I have a urn containing 90 red and 10 black balls. Now I wanna remove 3 from the urn. By the following codes: m<-90;n<-10;k<-3; x<-0:3 dhyper(x,m,n,k) I can obtain the probability that 0,1,2,3 red balls will be removed. 0.000742115 0.025046382 0.247680891 0.726530612 So >95% time, 2 to 3 red balls will be removed and the result...
2009 Mar 29
4
Constrined dependent optimization.
...optimization question that I was hoping to get some suggestions on how best to go about sovling it. I would think there is probably a package that addresses this problem. This is an ordering optimzation problem. Best to describe it with a simple example. Say I have 100 "bins" each with a ball in it numbered from 1 to 100. Each bin can only hold one ball. This optimization is that I have a function 'f' that this array of bins and returns a number. The number returned from f(1,2,3,4....) would return a different number from that of f(2,1,3,4....). The optimization is finding the o...
2008 Oct 26
0
alternative to Crystal Ball ?
Dear R users, I am looking for R packages that would best approximate Oracle's Crystall Ball [1]. For those not familiar: "Crystal Ball software is a leading spreadsheet-based software suite for predictive modeling, forecasting, Monte Carlo simulation and optimization. [..] Crystal Ball is used by customers from a broad range of industries, such as aerospace, financial services, manuf...
2011 Apr 01
1
"R CMD check" accepts but "R CMD INSTALL" rejects a tar ball.
I have somehow managed to made a source tar ball which "R CMD check" accepts but "R CMD INSTALL" rejects with: ------------------ Warning in untar2(tarfile, files, list, exdir) : checksum error for entry 'pax_global_header' Error in untar2(tarfile, files, list, exdir) : unsupported entry type ?g? ------------------...
2011 Nov 15
1
R Program
Can someone help me out with this problem? Write an R program to draw 10,000 random samples using the Polya Urn Scheme where the initial contents of the urn is one white ball and one black ball. Accumulate the proportion of white balls after each draw into one vector. Upload your R script file. HINT: You can simulate sampling one ball from an urn with N balls of which w are white and N - w are black with the Binomial R function: rbinom(1,1,w/N). -- View this message i...
2006 Dec 09
7
Simulation with R
An apparatus exists whereby a collection of balls is displaced to the top of a stack by suction. A top level (Level 1) each ball is shifted 1 unit to the left or 1 unit to the right at random with equal probability. The ball then drops down to level 2. At Level 2, each ball is again shifted 1 unit to the left or 1 unit to the right at random. The...
2007 Sep 28
2
Plots with discontinuity balls
Dear All, Can R plot graphs like the one at http://www.mathwords.com/f/f_assets/floor_graph.gif with the balls at the discontinuity points? Thanks in advance, Paul
2008 May 29
2
Calculating conditional mean of large series of experiments
I need to repeat an experiment 1000 times. Each experiment involves randomly selecting one ball each from two separate bags. Each bag contains 10 balls, numbered 1, 2, 3, ... , 10. So the probability of selecting any one pair of balls is equal to all others. For each experiment, what I need to do is assign a variable A which represents the maximum number out of the two balls selected; and a...
2006 Jan 22
7
: Indexed Search Engine 0.1.3 Released
...equency of the live search field should be. (Thanks to Jim Elliott) * Improved context display on search results by using the rails "excerpt" method. (Thanks to Jim Elliott) * Improved error handling. For more information, please view the project page at: http://lance.langwell-ball.com/pages/indexed-search Regards, Lance Ball -- Lance Ball http://lance.langwell-ball.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060122/5b76c952/attachment.html
2006 Oct 15
2
*what* to test?
So I dig rspec and BDD, of course. I thought that Dave''s Google Video was a great intro () -- even if it was a bit heavy on theory and a bit loose on the nuts and bolts. But I don''t see anyone sufficiently answering the big question: What do you test? How do you define higher level and lower level behaviors that should have tests written for them?
2003 Jun 17
3
Firewall Silly - anyone can help with a CVS tar ball ?
Hi All, Our FW appears to be blocking my CVS attempts, does anyone have a tar ball they can send me ? Rgds, Adam ********* DISCLAIMER ********* This message and any attachment are confidential and may be privileged or otherwise protected from disclosure and may include proprietary information. If you are not the intended recipient, please telephone or email the sender and de...
2006 Jan 11
17
Different Types of Users and User Engine
My question is how have people implemented different types of users in their Web applications using user-engine? As for my application, I use single table inheritance in order to derive several different types of users, such as "moderators," "editors," etc ... For example, let''s say that I want to create a moderator. I define a new moderator class and Controller like
2008 Jan 24
1
Filling data frame data into a matrix - please help
...m1. Could some one help me because I have 130K rows and 500 column data.frame object and I was told that a for loop will take a long time. Thank you. > r1 <- c("A","A","B","B") > c1 <- c("Apple","Andy","Boy","Ball") > v1 <- as.numeric(c(0.001,0.02,0.3,NA)) > d1 <- cbind(r1,c1,as.numeric(v1)) > d1 <- data.frame(d1) > d1 r1 c1 V3 1 A Apple 0.001 2 A Andy 0.02 3 B Boy 0.3 4 B Ball <NA> > m1 <- matrix(NA,2,4) > rownames(m1)<- unique(r1) > colna...
2012 Feb 04
3
effect function (effects package)
Dear all, How does the effect() function in the effects package calculate effects and standard errors for glm quasipoisson models? I was using effect() to calculate the impact of increasing x to e + epsilon, and then finding the expected percent change. I thought that this effect (as a percentage) should be exp(beta*epsilon), where beta is the appropriate coefficient from the model, but
2004 Oct 06
0
2x2 test: total confusion.
I wan't a test for the 'association' between two events, lets say the color of balls picked and the pickers (this is quite a good analogy to my data). I have 200 different pickers P I have 1,000 colors of balls C I have 1,000,000 picks in total I am totally confused about what test to apply and when and why. This is what I *think* I know how many balls each pic...
2010 Mar 30
1
Multivariate hypergeometric distribution version of phyper()
...function, script or method to achieve my goal of estimating the likelyhood of overlap between 3 lists of genes, ideally using the multivariate hypergeometric, or anything else for that matter? cheers in advance, Karl #example attempt with two gene lists m & n N <- 45101 # total number balls in urn m <- 720 # number of 'white' or 'special' balls in urn, aka 'success' n <- 801 # number balls drawn or number of samples k <- 40 # number of 'white' or 'special' balls DRAWN a <- choose(m,k) b <- choose((N-m),(n-k)) z <- choo...