search for: tossed

Displaying 20 results from an estimated 665 matches for "tossed".

Did you mean: lossed
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=TRUE)); d; exp_num head_ct 1
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")) table(num_heads)/n What I'd like to do next is run this
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
2007 Aug 16
1
R 2.5.1.
installed from the binary image (http://cran.r-project.org/bin/ macosx/) on an intel mac 10.4.10 throws three warnings: ----------------- R version 2.5.1 (2007-06-27) Copyright (C) 2007 The R Foundation for Statistical Computing ISBN 3-900051-07-0 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or
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
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
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
I have 4 sparc based sun boxes I am about to pay money so I can get rid of them. They are running older versions of 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
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 not...
2018 Jul 30
2
Louis; re:your repo and Ubuntu 18.04
So, Louis - 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
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
2012 Aug 15
5
stupid bash question
the relevant snippet is... NAME="*.mov" cd $IN if test -n "$(find . -maxdepth 1 -name $NAME -print -quit)" and if there is one file in this 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
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
2007 Nov 03
4
Questions about kernel updates
The latest CentOS 5 kernel, 2.6.18-8.1.15.el5 broke my box and I had to drop back to 2.6.18-8.1.14.el5 before I could play DVDs with either Xine or mplayer. ( xine-0.99.5-1.el5.rf & mplayer-1.0-0.36.rc1try2.el5.rf ). This is no big deal to me -- as long as I can make certain that the older kernel doesn't go away. If I understand the installonly plugin correctly, an entry of tokeep=4 in
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 usernames that are allowed to use pop, if the name isn't in that list then pop
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 what...
2007 Mar 13
2
cat cron jobs into crontab
Hi, What'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