similar to: Efficient sampling from a discrete distribution in R

Displaying 20 results from an estimated 300 matches similar to: "Efficient sampling from a discrete distribution in R"

2007 Apr 20
1
faster image display?
Does someone here know of a way to display images in R that isn't slow? Here are the things I've tried so far: library(rimage) i<-read.jpeg('foo.jpg') plot(i) # very slow library(pixmap) i <- read.pnm('foo.pnm') plot(i) # also slow chans <- getChannels(i) image(chans[,,1]) # this is slow too I also tried using library(cairoDevice) but it only makes everything
2004 Sep 27
1
random discrete from the first tuple
Dear UseR I have a dataset, for instance x1(A, B, C), x2(M,F), x3(X1,X2,X3,X4) and x4(W,F,P). I want to make a small dataset with the random tuple. I know package e1071 can handle a random discrete, > library(e1071) > x1 <- rdiscrete(6, c(2,2,2), c("A","B","C")) > x2 <- rdiscrete(6, c(3,3), c("M","F")) > x3 <-
2005 Oct 20
1
[LLVMdev] llvm-test Makefile question
Hi, I am trying to do something similar to the profiling target in the llvm-test suite makefiles, but I'm not a gmake expert, so I am stumped on something: I did some copy-and-paste of the profile code in llvm-test/Makefile.programs and got it working within SingleSource/Benchmarks, where I can say 'make pmf' or 'make profile' and get a build with profiling results or my own
2006 Mar 21
3
[LLVMdev] problem loading analysis results from Inliner pass
On 3/21/06, Chris Lattner <sabre at nondot.org> wrote: > On Mon, 20 Mar 2006, Michael McCracken wrote: > > > Hi, I'm trying to access an analysis pass from the Inliner pass, and > > I'm having a lot of trouble getting that to work - I can verify that > > my pass is loaded and run (it is a dynamically loaded pass that is > > part of an analysisgroup),
2005 Jan 07
1
[LLVMdev] Shared library building problems on Darwin
Hi, a while back I wrote that the llvm makefiles didn't create the correct kind of file for use on darwin with -load. Since then, both the shared library and makefile system have been overhauled significantly. So I checked again - as updated from CVS, the current makefiles don't build the right object type on darwin. If you follow the advice of 'Writing an LLVM Pass" tutorial,
2002 Jul 01
3
Discrete random variable
Hi, I would create a function rdiscrete that returns the value of a discrete random variable X defined on a subset which can change, and for the same probability for the issue, eg: X could sometimes take a value in the subset {2,3,4} with probability 1/3 for each issue, and sometimes X could take a value in the subset {2,3,4,5,6} with probability 1/5 for each issue, etc. The function should have
2002 Nov 21
2
winbind is my enemy :) hehehe
Hello. when i type smbpasswd -j centroadm fetch_domain_sid: machine PMF rejected the tconX on the IPC$ share. Error was : NT_STATUS_ACCESS_DENIED. Failed to get domain SID. Unable to join domain CENTROADM. i have 3 nic on linux box an 3 on w2k pdc. what is the problem??? thanks WILSON This is my smb.conf [global] workgroup = centroadm password server = pmf security = domain winbind uid =
2005 Jan 11
2
[Fwd: Re: [LLVMdev] Shared library building problems on Darwin]
Michael, I've implemented a LOADABLE_MODULE feature in the makefiles: http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20050110/023147.html The approach taken is almost what you described below. However, I want to retain the distinction between a "regular" shared library and one that can be dlopened. So, if you specify SHARED_LIBRARY=1 you get a regular shared library
2005 Jul 20
2
Issues with convolve
We obtained some disturbing results from convolve() (inaccuracies and negative probabilities). We'll try to make the context clear in as few lines as possible... Our function panjer() (code below) basically computes recursively the probability mass function of a compound Poisson distribution. When the Poisson parameter lambda is very large, the starting value of the recursive scheme ---
2002 Nov 19
2
help with winbind!
hello! any help me with winbind. i need to use samba/winbind just only to provide autentication with ntlm for squid. programs versions: linux rh 8.0 - squid 2.5S1 - samba 2.2.6 remember: the use of samba/winbind is only to provide autentication for squid with ntlm. MY smb.conf workgroup = CENTROADM password server = PMF security = domain winbind uid = 10000-20000 winbind gid = 10000-20000
2006 Jun 30
2
Query : Chi Square goodness of fit test
I want to calculate chi square test of goodness of fit to test, Sample coming from Poisson distribution. please copy this script in R & run the script The R script is as follows ########################## start ######################################### No_of_Frouds<- c(4,1,6,9,9,10,2,4,8,2,3,0,1,2,3,1,3,4,5,4,4,4,9,5,4,3,11,8,12,3,10,0,7) N <- length(No_of_Frouds) # Estimation of
2006 May 09
4
Can't there be a cd command?
R is quite a powerful environment. Here's a small way it could be even better. I wanted to change the working directory, so I tried the obvious thing > cd("foo") Error: couldn't find function "cd" Then I looked for `directory' in the FAQ but found nothing. A search for directory in the introduction also turned up nothing. A Google search for "gnu R
2015 Jun 18
4
C7: EPEL conflicts with Base and ElRepo?
Hi everyone, This just came to my attention --- I have CentOS 7 installed on one machine, and have configured elrepo and epel as additional repositories. When I turned on the yum-priorities package (and set up priorities in the order base&updates < elrepo < epel), it turns out that there are 65 conflicting packages between base and epel, and additional 5 between elrepo and epel (there
2008 Jan 01
3
3rdrail run rake task error: no Ruby script found in input (LoadError) (Windows)
Hi, dudes I got a question here. When I run "rake db:migrate" in 3rdrail, it throws an error: D:\ruby\bin\ruby.exe: no Ruby script found in input (LoadError). I have set the ruby interpreter paths, And can''t find the solution on Google. Any good ideas? Issac --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the
2008 Jul 02
1
graph woes
Hey Gang, Here is the situation. First of all I am a newbie, in the arena of R, so please bare with me. I am trying to make a plot with a series of plot lines that uses logs on the x axis, and when I plot it I am having a few odd things go on that I do not know how to correct. 1. the tick marks are not where I want them to be. I want them at .1, 1, 10, and 100, but I'm get them at 0.1,
2007 Feb 08
1
Zeta and Zipf distribution
Dear R user, I want to estimate the parameter of ZETA or/and ZIPF distributions using R, given a series of integer values. Do you know a package (similar to MASS) or a function (similar to fitdistr) I can use to estimate the parameter of these distributions using MLE method? Otherwise do you know a function (which use MLE method to estimate distribution parameters) that allow me to specify a
2023 Mar 21
1
"doveadm altmove -r" not working ?
> On 21/03/2023 00:26 EET Benoit Branciard <benoit.branciard at univ-paris1.fr> wrote: > > > Hello, > > I have some trouble using "doveadm altmove -r". > > Regular "doveadm altmove" is OK, selected mails were moved to alternate > storage as expected. But I can't manage to get them back to original > location, "doveadm altmove
2006 Jun 08
1
Vega 50 10 FXO
Has anyone here using VegaStream FXO with asterisk? I just got the Vega 50 10 FXO and all I could manage by now is to get outgoing calls. Any pointers and a script sample would be appreciated. Thanks, Issac
2023 Mar 20
3
"doveadm altmove -r" not working ?
Hello, I have some trouble using "doveadm altmove -r". Regular "doveadm altmove" is OK, selected mails were moved to alternate storage as expected. But I can't manage to get them back to original location, "doveadm altmove -r" has no effect. We are using Dovecot 2.3.4 (Debian Buster package). mail_location =
2004 Oct 17
3
how to draw a multivariate function
Hi, Rusers: Thanks for answering my last questions. I am frustrated in plotting a trinomial pmf function f(x,y | n, pa, pb) = factorial(n)/ (factorial(x) * factorial(y) * factorial (n-x-y))* pa^x * pb^y * ((1-pa-pb)^(n-x-y)) obviously it is a bivariate function of x and y. But I have put a lot of time on this. ********************************** x <- seq(0, n, len = n/2+1) # for now I set