search for: random2

Displaying 12 results from an estimated 12 matches for "random2".

Did you mean: random
2016 Jun 30
2
Calling C implementations of rnorm and friends
...e code of rnorm, because I wanted to understand how the function works. Looking at Winston Chang's github R mirror, I found rnorm in the random.c file in the stats package. However, the code I find for it: #define DEFRAND2_REAL(name) \ SEXP do_##name(SEXP sn, SEXP sa, SEXP sb) { \ return random2(sn, sa, sb, name, REALSXP); \ } DEFRAND2_REAL(rnorm) Doesn't help me at all in understanding how it works. It should create a function random2(sn, sa, sb, norm, REALSXP); I understand that is a version of the random2 function that returns a real S expression taking sn, sa and sb as parameters...
2016 Jul 01
2
Calling C implementations of rnorm and friends
...s. Looking at Winston Chang's github R >> mirror, I found rnorm in the random.c file in the stats package. However, >> the code I find for it: >> >> >> >> #define DEFRAND2_REAL(name) \ >> SEXP do_##name(SEXP sn, SEXP sa, SEXP sb) { \ >> return random2(sn, sa, sb, name, REALSXP); \ >> } >> DEFRAND2_REAL(rnorm) >> >> >> Doesn't help me at all in understanding how it works. It should create a >> function random2(sn, sa, sb, norm, REALSXP); I understand that is a >> version >> of the random2 functi...
2010 Oct 07
2
Re: running 16 bit real mode executables on mac
...erything perfectly and outputs a .exe file with no complaints. Then, when i try and run the program it give me an error like Code: fixme:module:__wine_load_dos_exe DOS executables not supported on this platform winevdm: can't exec 'Z:\home\trusktr\projects\school\fall2010\cisp310_assembly\random2\main.exe': invalid program file If i run the .EXE file in DosBox, then it works just fine. How can i get these 16bit apps that I'm making working in Wine?
2016 Jun 30
0
Calling C implementations of rnorm and friends
...understand how the function works. Looking at Winston Chang's github R > mirror, I found rnorm in the random.c file in the stats package. However, > the code I find for it: > > > > #define DEFRAND2_REAL(name) \ > SEXP do_##name(SEXP sn, SEXP sa, SEXP sb) { \ > return random2(sn, sa, sb, name, REALSXP); \ > } > DEFRAND2_REAL(rnorm) > > > Doesn't help me at all in understanding how it works. It should create a > function random2(sn, sa, sb, norm, REALSXP); I understand that is a version > of the random2 function that returns a real S expression t...
2016 Jul 01
1
Calling C implementations of rnorm and friends
...rnorm in the random.c file in the stats package. > However, > >>> the code I find for it: > >>> > >>> > >>> > >>> #define DEFRAND2_REAL(name) \ > >>> SEXP do_##name(SEXP sn, SEXP sa, SEXP sb) { \ > >>> return random2(sn, sa, sb, name, REALSXP); \ > >>> } > >>> DEFRAND2_REAL(rnorm) > >>> > >>> > >>> Doesn't help me at all in understanding how it works. It should create > a > >>> function random2(sn, sa, sb, norm, REALSXP); I understan...
2016 Jul 01
0
Calling C implementations of rnorm and friends
...s github R >>> mirror, I found rnorm in the random.c file in the stats package. However, >>> the code I find for it: >>> >>> >>> >>> #define DEFRAND2_REAL(name) \ >>> SEXP do_##name(SEXP sn, SEXP sa, SEXP sb) { \ >>> return random2(sn, sa, sb, name, REALSXP); \ >>> } >>> DEFRAND2_REAL(rnorm) >>> >>> >>> Doesn't help me at all in understanding how it works. It should create a >>> function random2(sn, sa, sb, norm, REALSXP); I understand that is a >>> version &g...
2011 Dec 02
0
Save Venn-diagram (Vennerable) together with table and plot in single pdf page
...a4", onefile=TRUE,width=7,height=10) layout(matrix(c(1,2,2,1,2,2,3,3,3), 3, 3, byrow = TRUE),heights=c(1,1,2)) par(mar=c(6,2,2,4)) textplot(tabletext,valign="top",halign="left",cex=2) plot(rnorm(100),main="Random 1") plot(rnorm(100),col="red",main="Random2") dev.off() And here the example of the pdf with where I try to replace the "Random1" point plot with a Venn diagram (wrong size and position of Venn diagram): pdf("path/venn_test.pdf", fillOddEven=TRUE,paper="a4", onefile=TRUE,width=7,height=10) layout(matr...
2008 Feb 29
1
patch for random.c
Dear all, while looking for some inspiration of how to organise some code, I studied the code of random.c and noticed that for distributions with 2 or 3 parameters the user is not warned if NAs are created while such a warning is issued for distributions with 1 parameter. E.g: R version 2.7.0 Under development (unstable) (2008-02-29 r44639) [...] > rexp(2, rate=Inf) [1] NaN NaN Warning
2010 Oct 08
0
running 16 bit real mode executables on mac
...plaints. >> >> Then, when i try and run the program it give me an error like >> >> Code: >> fixme:module:__wine_load_dos_exe DOS executables not supported on this platform >> winevdm: can't exec 'Z:\home\trusktr\projects\school\fall2010\cisp310_assembly\random2\main.exe': invalid program file >> >> >> >> If i run the .EXE file in DosBox, then it works just fine. How can i get these 16bit apps that I'm making working in Wine? > > >getting 16 bit Windows programs working is one thing... but if your 16bit is a DOS...
2011 Apr 19
0
Error message in package:bayesSurv. Why?
...val-censored as in the tandmobile dataset. I've set up survreg3 as follows sample.childmdd <- bayessurvreg3( formula=Surv(childtime+.01,childevent)~nchild+cluster(id), random=~1, formula2=Surv(mddtime+.01,mddevent)~nchild+blustatus+well.before+earlydep+cluster(id), random2=~1, onlyX=FALSE, dir="chaindir.childmdd", nsimul=nsimul.childmdd, prior=prior.gspl.child, prior2=prior.gspl.mdd, prior.beta=prior.beta.child, prior.beta2=prior.beta.mdd, prior.b=prior.b.child, prior.b2=prior.b.mdd, init=init.child, init2=ini...
2007 Sep 18
2
rsync daemon troubleshooting
Hi all: I tried to start a rsync daemon under my user name (not an administrator) on debian linux box(linux kernel 2.4.27), and failed. The command I used is > rsync -v -v --daemon --config=rsyncd.conf This command returns without any error although the daemon does not get started. The rsyncd.conf I used is as follows. Do I miss anything in the configuration file? Any help is appreciated.
2012 May 09
2
Random resampling of columns in species association matrices
I have a host-parasite association matrix in which parasite species are rows and host species columns and cells contain the frequency of interactions. Some parasites are associated with many hosts, and some hosts harbor several parasites, and I want to repeatedly select only one single representative host per "generalized" (multi-host) parasite to create a new matrix in which no hosts