search for: toss

Displaying 20 results from an estimated 669 matches for "toss".

Did you mean: foss
2010 Oct 13
2
Coin Toss Simulation
I am trying a simple toin coss simulation, of say 200 coin tosses. The idea is to have a data frame like so: Experiment# Number_Of_Heads 1 104 2 96 3 101 So I do: d <-data.frame(exp_num=c(1,2,3)); /* Just 3 experiments to begin with */ d$head_ct <-sum(sample(0:1,200,repl=TR...
2012 Oct 09
2
simulating a toss of a coin
All, I've devised a way to toss a coin three times and record the number of heads, then use the table command to summarize the number of time 0, 1, 2, or 3 heads were obtained. n <- 100 x <- sample(c("H","T"),3*n,replace=TRUE) dim(x) <- c(3,n) num_heads <- apply(x,2,function(x) sum(x=="H&quot...
2004 Oct 01
2
Sipura 3000 FXO
Does anyone have a Sipura 3k running, and using the FXO? I've got things working right, but if I try to toss a *67 in the dialplan, it seems the sipura is throwing a 403 forbidden back. For example: exten => _91NXXNXXXXXX,3,Dial,SIP/sipura1pstn1/${EXTEN:1} works fine exten => _91NXXNXXXXXX,3,Dial,SIP/sipura1pstn1/*67${EXTEN:1} does not (even if I toss a couple Ws in) I can't seem to get it...
2007 Aug 16
1
R 2.5.1.
...#39; for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. 2007-08-15 20:52:09.248 R[711] tossing reply message sequence 1 on thread 0x15b5e250 2007-08-15 20:52:09.414 R[711] tossing reply message sequence 2 on thread 0x15b5e250 2007-08-15 20:52:09.454 R[711] tossing reply message sequence 3 on thread 0x15b5e250 > ------------------ however nothing obvious seems to go wrong. edo...
2007 Oct 15
2
Need some help
Hi! I'm taking a course that requires some programming background, but I'm a complete novice in the field. when asked to generate a list of 20 uniform random numbers, is it alright if I put in >randu, and just copy-paste the first 20 numbers?? Or is there, as I suspect, a better way of calling out exactly 20 uniform random numbers?? I'm also unable to solve the following problem:
2010 Oct 09
1
cron.daily is tossing this strange message about xapian:
/etc/cron.daily/apt: Traceback (most recent call last): File "/usr/sbin/update-apt-xapian-index", line 581, in <module> import os.path, re, imp, glob, xapian, textwrap, shutil, fcntl, errno, itertools, time File "/usr/lib/python2.6/dist-packages/xapian.py", line 6, in <module> import _xapian ImportError: /usr/lib/python2.6/dist-packages/_xapian.so:
2009 Jun 26
0
ready to toss the towel | lapack and 2.9.0
Well, I've now tried just about every permutation I can think of - including using the ATLAS lapack (instead of generic), in various combinations with ACML, or generic BLAS, or ATLAS blas. No matter what I do, so long as I have lapack of any flavour, I get the 'stats error' with make check. And, it always seems to throw the error at the same point in the stats test file (an svd in
2015 Feb 27
2
Why does R replace all row values with NAs
I know how to get the output I need, but I would benefit from an explanation why R behaves the way it does. # I have a data frame x: x = data.frame(a=1:10,b=2:11,c=c(1,NA,3,NA,5,NA,7,NA,NA,10)) x # I want to toss rows in x that contain values >=6. But I don't want to toss my NAs there. subset(x,c<6) # Works correctly, but removes NAs in c, understand why x[which(x$c<6),] # Works correctly, but removes NAs in c, understand why x[-which(x$c>=6),] # output I need # Here is my question: why do...
2015 Feb 27
2
Why does R replace all row values with NAs
I know how to get the output I need, but I would benefit from an explanation why R behaves the way it does. # I have a data frame x: x = data.frame(a=1:10,b=2:11,c=c(1,NA,3,NA,5,NA,7,NA,NA,10)) x # I want to toss rows in x that contain values >=6. But I don't want to toss my NAs there. subset(x,c<6) # Works correctly, but removes NAs in c, understand why x[which(x$c<6),] # Works correctly, but removes NAs in c, understand why x[-which(x$c>=6),] # output I need # Here is my question: why do...
2003 Jan 02
3
random number generation
Can a single random number be generated in R? I have an exercise that wants to simulate coin tosses, and I cannot seem to find a good example of the use of random number generation in R. Any help? Joshua Gramlich Chicago, IL
2006 Jun 17
4
free sun boxes
...Solaris. You should be able to load Solaris 10 and play around with * on them. Time to clean the office: 3 Ultra 5 1 Sparcstation 5 I also have a box full of Sun keyboards and mice. Contact me offline if you want them. I've had many good years of development on them and it kills me to just toss them, but the office is just too damn cluttered. thanks, bk... -- Bob Knight [-w] the work option bk@minusw.com 925-449-9163
2003 Aug 08
5
ip phones and intercom/paging
There was a thread a few months ago that tossed around some ideas for using a cisco phone for intercom or paging. I don't have any ip phones, and wondered if anyone had any luck getting intercom or paging to work on the cisco units. Do any of the (cheaper) ip phones have a way to support intercom or paging? I presume that it's no...
2018 Jul 30
2
Louis; re:your repo and Ubuntu 18.04
...uis - I'm quite interested in using your repo for Samba support on 18.04. You note there's some detail on it on the github site - but I don't seem to find it. Also - while I know it's all just best intentions etc - is this something you intend to do for a while? [I'd be glad to toss some $$$ your way to help, if that's helpful. I'd toss some bucks to SerNet - but while the costs aren't massive, they do charge quite a lot for small shops, when you add the Sernet fees over, say, five years - for a few servers.] Recap: 1) Is this something you intend to do for a whil...
2012 Aug 04
3
Head or Tails game
Hi, Reading about a "Heads and Tails" game in http://www.dartmouth.edu/~chance/teaching_aids/books_articles/probability_book/amsbook.mac.pdf Introduction to Probability (Example 1.4, pp. 5-8). You toss a coin 40 times. If heads, Peter wins $1, tails, he loses $1. I think I can do that ok with: winnings <- sum(sample(c(-1,1), 40, replace=TRUE)) But I have to do it 10,000 times and I have to record and collect the winnings. In other languages, I would probably use a for loop and "push&quo...
2012 Aug 15
5
stupid bash question
...directory - ie test.mov, this works fine but if there are two (or more) files in this directory - test.mov, test2.mov then I get an error... find: paths must precede expression So my code is evidently wrong. I just want a test for 1 or more files ending in .mov in the directory? Any one want to toss me a bone here? -- Craig White ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ craig.white at ttiltd.com 1.800.869.6908 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ www.ttiassessments.com Need help communicating between generations at work to achieve your desired success? Let us help!
2010 Oct 05
3
R-help
Im trying to simulate the rolling of a pair of dice   this is my function: #function to simulate tosses of a pair of dice #from the simulation, the program returns the empirical probability of #observing a double count <- 0 for(j in 1:sim){#begin loop die1 <- sample(1:6,1) print(die1) die2 <- sample(1:6,1) print(die2) count <- ifelse(die1 == die2, count + 1, count) }#end loop emprob &lt...
2007 Nov 03
4
Questions about kernel updates
...y of tokeep=4 in /etc/yum/pluginconf.d/installonlyn.conf will cause yum to leave the working kernel in place through 2 more upgrades. Aside from setting tokeep to an insanely large value, is there any way to insure that yum will concern itself only with installing updates, allowing me to deal with tossing the old stuff? Also, is my understanding of the "tokeep" value in installonlyn.conf correct? Thanks! --
2004 Jun 06
2
Feature request?
I'd like to toss a feature request on the table for consideration. We currently use a different popd because of a feature that allows us to restrict pop access based upon an allowed users list. This is the only thing that keeps us from using the popd in dovecot currently. It's a simple text file of usern...
2004 Jun 11
3
'append aborted'
I'm copying all my archives from one imap server on one machine to the imap-ssl dovecot server on another machine. After a bit, there's an error that's tossed up on my mozilla client that says the imap server couldn't complete the operation with the message append aborted. It keeps popping up after anything from 50 to 300 emails. Last night I was able to move ~12000 emails from one machine to the other without the ssl enabled. Any hints on wh...
2007 Mar 13
2
cat cron jobs into crontab
...39;s the best/safest way to "cat" the following job into crontab? */3 * * * * /usr/lib64/nagios/plugins/check_megaraid_passive.sh > /dev/null 2>&1 I am used to doing this manually via crontab -e, but now I simply have too many centos servers to build in a given week (get to toss another 120K at some more 2U chenbro/tyan/amd64's -w000ooo). -karlski