search for: randu

Displaying 14 results from an estimated 14 matches for "randu".

Did you mean: rand
2017 Aug 14
4
Help creating the IBM Randu function
Dear all, I am trying to learn functions in R and 3D plotting so I decided to try to plot the famous bad PRNG Randu from IBM(1). However something is not correct in the function I have created. First I define the function RANDU like this: > RANDU <- function(num) { return (65539*num)%%(2^31) } and test that it works for a seed of 1: > RANDU(1) [1] 65539 but if I want the next value in the sequ...
2017 Aug 14
0
Help creating the IBM Randu function
Please look at ?datasets::randu for David Donoho's translation of RANDU into R. On Mon, Aug 14, 2017 at 12:49 PM, Martin M?ller Skarbiniks Pedersen <traxplayer at gmail.com> wrote: > Dear all, > > I am trying to learn functions in R and 3D plotting so I decided to try > to plot > the famous bad PRNG R...
2017 Aug 14
0
Help creating the IBM Randu function
Hi Martin, The corrected function would be RANDU <- function(num) { return ((65539*num)%%(2^31)) } You forgot the brackets for the return function. Hence, what was returned was always (65539 * num) On Mon, Aug 14, 2017 at 12:49 PM, Martin M?ller Skarbiniks Pedersen <traxplayer at gmail.com> wrote: > Dear all, > > I am tryi...
2002 Oct 10
1
Documentation for randu() (PR#2141)
Full_Name: Andrew J. Baczkowski Version: 1.1.1, 1.5.0 OS: NT, unix Submission from: (NULL) (129.11.159.161) Help documentation for randu() has incorrect R code in Example. Should replace line 4 seed <<- ((2^16) + 3) * seed) by seed <<- ((2^16) + 3) * seed) %% (2^31) -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ....
2010 Mar 31
2
Generative Topographic Map
...cuments and Settings/Monville/Alanine Dipeptide/DBP1/DHA" setwd(inDir) T <- read.table("DHA_TNH.txt") L <- 3 X <- matrix(nrow=nrow(T),ncol=3,byrow=TRUE) MU <- matrix(nrow=round(nrow(T)/5), ncol=L) for(i in 1:ncol(X)) { for(j in 1:nrow(X)) { X[j,i] <- RANDU() } } for(i in 1:ncol(MU)) { for(j in 1:nrow(MU)) { MU[j,i] <- RANDU() } } sigma <-1 FI <- gtm_gbf(MU,sigma,X) W <- gtm_ri(T,FI) Y= FI%*%W b = gtm_bi(Y) lambda <- 0.001 for (m in 1:15) { trnResult = gtm_trn(T, FI, W, lambda, 1, b, 2,quiet = TRUE, minSing =...
2011 Feb 02
4
testing randomness of random number generators with student t-test?
Hi, subject more or less says it all. I freely admit to not having bothered to find some of the online papers about method of testing the quality of random number generators -- but in an idle moment I wondered what to expect from something like the following: randa<-runif(1000) randb<-runif(1000) t.test(randa,randb)$p.value var.test(randa,randb)$p.value [repeat ad nauseum] Is the
2005 Feb 02
4
(no subject)
...1920-1939 precip Annual Precipitation in US Cities presidents Quarterly Approval Ratings of US Presidents pressure Vapor Pressure of Mercury as a Function of Temperature quakes Locations of Earthquakes off Fiji randu Random Numbers from Congruential Generator RANDU rivers Lengths of Major North American Rivers rock Measurements on Petroleum Rock Samples sleep Student's Sleep Data stack.loss (stackloss)...
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: We know that on average 30% of the customers who enter a store make a purchase. Suppose 200 people enter the st...
1999 Apr 07
1
R-0.64.0 is released
...an load to specific environments. o Sockets interface: make/read/write/close.socket() o Function chull() for planar convex hulls o pairs.formula() allows formula notations for scatter plot matrix. o new dataset co2. o documentation for datasets mtcars, plants, pressure, randu and sleep. o the sunspots dataset is now monthly rather than annual. BUG FIXES o strsplit(), scan() and friends use a much larger char buffer (still fixed size; this will change again) o ts() allows a data-frame argument `data'. o anova.lm handles singular models...
1999 Apr 07
1
R-0.64.0 is released
...an load to specific environments. o Sockets interface: make/read/write/close.socket() o Function chull() for planar convex hulls o pairs.formula() allows formula notations for scatter plot matrix. o new dataset co2. o documentation for datasets mtcars, plants, pressure, randu and sleep. o the sunspots dataset is now monthly rather than annual. BUG FIXES o strsplit(), scan() and friends use a much larger char buffer (still fixed size; this will change again) o ts() allows a data-frame argument `data'. o anova.lm handles singular models...
2002 Nov 01
8
R-1.6.1 is released
...d strange things if there were "%" characters in the deparsed expression (PR#2120). o as.matrix.data.frame converted missings to "NA" not character NA. (PR#2130) o spec.pgram() was only interpolating zero freq for one series. (PR#2123) o help(randu) had % unescaped in the example. (PR#2141) o Making html links would fail if packages-head.html was not writeable. (PR#2133) o Sweave.sty was not installed to $R_HOME/share/texmf when builddir != srcdir. On Windows backslashes in latex paths have to be replaced...
2002 Nov 01
8
R-1.6.1 is released
...d strange things if there were "%" characters in the deparsed expression (PR#2120). o as.matrix.data.frame converted missings to "NA" not character NA. (PR#2130) o spec.pgram() was only interpolating zero freq for one series. (PR#2123) o help(randu) had % unescaped in the example. (PR#2141) o Making html links would fail if packages-head.html was not writeable. (PR#2133) o Sweave.sty was not installed to $R_HOME/share/texmf when builddir != srcdir. On Windows backslashes in latex paths have to be replaced...
2000 Feb 17
2
Installation of rpm file on Suse Linux 6.2 (PR#449)
...ibrary/base/R-ex/qraux.R action: create D: file: /usr/local/lib/R/library/base/R-ex/quakes.R action: create D: file: /usr/local/lib/R/library/base/R-ex/quantile.R action: create D: file: /usr/local/lib/R/library/base/R-ex/quit.R action: create D: file: /usr/local/lib/R/library/base/R-ex/randu.R action: create D: file: /usr/local/lib/R/library/base/R-ex/range.R action: create D: file: /usr/local/lib/R/library/base/R-ex/range.default.R action: create D: file: /usr/local/lib/R/library/base/R-ex/rank.R action: create D: file: /usr/local/lib/R/library/base/R-ex/read.fwf.R action:...
2002 Jul 11
1
dyn.load tcl/tk (PR#1774)
...html latex example qraux text html latex example quakes text html latex example quantile text html latex example quit text html latex example randu text html latex example range text html latex example rank text html latex example read.00Index text html latex read.ftable text h...