Displaying 20 results from an estimated 5000 matches similar to: "Documentation for randu() (PR#2141)"
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 Randu from IBM(1).
> However something is not correct in the
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 trying to learn functions in R and 3D plotting so I
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
2010 Mar 31
2
Generative Topographic Map
I tried to use R version of package
I noticed the original MatLab Pckage is much better documented.
I had a look at the R demo code "gtm_demo" and found that variable Y is used in advanced of being created:
I wrote my own few lines as follows:
inDir <- "C:/Documents and Settings/Monville/Alanine Dipeptide/DBP1/DHA"
setwd(inDir)
T <-
2005 Feb 02
4
(no subject)
can you recommend a good manual for R that starts with a data set and gives
demonstrations on what can be done using R? I downloadedR Langauage
definition and An introduction to R but haven't found them overly useful.
I'd really like to be able to follow some tutorials using a dataset or many
datasets. The datasets I have available on R are
Data sets in package 'datasets':
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:
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
2002 Nov 01
8
R-1.6.1 is released
I've rolled up R-1.6.1.tgz a short while ago. This is a minor upgrade,
fixing an assortment of minor bugs, and one major one: 1.6.0
introduced a memory leak in deparsing, causing much trouble for people
running simulations.
You can get it from the developer site at
http://cvs.r-project.org/pub/CRAN/src/base/R-1.6.1.tgz
or wait for it to be mirrored at a CRAN site near you. Binaries for
2002 Nov 01
8
R-1.6.1 is released
I've rolled up R-1.6.1.tgz a short while ago. This is a minor upgrade,
fixing an assortment of minor bugs, and one major one: 1.6.0
introduced a memory leak in deparsing, causing much trouble for people
running simulations.
You can get it from the developer site at
http://cvs.r-project.org/pub/CRAN/src/base/R-1.6.1.tgz
or wait for it to be mirrored at a CRAN site near you. Binaries for
2009 Aug 04
3
setting verbosity for asterisk cli..
Hi,
I am using asterisk 1.6.0.10
For debugging i set verbosity to 10 with asterisk -vvvvvvvvvvr..
now i am trying to set it lower but..
when i type asterisk -r it starts with Connected to Asterisk 1.6.0.10
currently running on asterisk1 (pid = 2408)
Verbosity is at least 10
when i try set verobisty 1 or similar commands.. i think this command is
obselete in 1.6 ..
set verbose 1
No such command
1998 Aug 26
3
lmhosts
this may be a remedial question, but uh, what's /etc/lmhosts supposed to
be? smbclient always complains that it doesn't exist... should it?
thanks...
-E
2004 Nov 22
1
Search enginge
Hello,
The search engine in Netscape 7.1 does not seem to work for me -- it used to
work fine before. I do get the html help page but nothing happens when I enter
a keyword for search.
Java plug in and it is enabled -- so this is not the problem.
Any help would be appreciated.
Thanks Marwan
> version
platform i386-pc-mingw32
arch i386
os mingw32
system i386,
2005 Oct 06
1
blank graphics window while R is working
Dear R-help,
When R starts to execute some code, all the graphics windows
associated with that R session go blank, and remain blank until the R
prompt returns.
I am using the "ion" window manager
(http://modeemi.cs.tut.fi/~tuomov/ion/) under Debian linux.
I notice that under the gnome desktop environment with Fedora Core 4
linux, the graphics windows retain their images while R
2017 May 11
1
[PATCH v2 5/5] ACPI: button: Obselete acpi_lid_open() invocations
On Tue, May 9, 2017 at 9:02 AM, Lv Zheng <lv.zheng at intel.com> wrote:
> Since notification side has been changed to always notify kernel listeners
> using _LID returning value. Now listeners needn't invoke acpi_lid_open(),
> it should use a spec suggested control method lid device usage model:
> register lid notification and use the notified value instead, which is the
>
2017 May 12
2
[PATCH v2 5/5] ACPI: button: Obselete acpi_lid_open() invocations
Hi,
If my previous reply is not persuasive enough.
Let me do that in a different way.
> From: linux-acpi-owner at vger.kernel.org [mailto:linux-acpi-owner at vger.kernel.org] On Behalf Of Zheng,
> Lv
> Subject: RE: [PATCH v2 5/5] ACPI: button: Obselete acpi_lid_open() invocations
>
> Hi,
>
> > From: Benjamin Tissoires [mailto:benjamin.tissoires at gmail.com]
> >
2007 Jan 03
3
pb in regular expression with the character "-" (PR#9437)
Full_Name: FAN
Version: 2.4.0
OS: Windows
Submission from: (NULL) (159.50.101.9)
These are expected:
> grep("[\-|c]", c("a-a","b"))
[1] 1
> gsub("[\-|c]", "&", c("a-a","b"))
[1] "a&a" "b"
but these are strange:
> grep("[d|\-|c]", c("a-a","b"))
integer(0)
2006 Feb 09
2
Finding related items (like latent semantic indexing)
I''ve been trying to use Classifier::LSI to provide a means of finding
''related items'', where each item is a one line description of a product.
Although on small samples the Classifier works great, it completely
baulks on my current dataset of 3000 items.
I''ve started to look at ferret this morning, following a post on the
ruby mailing list. I''d
2000 Feb 03
1
Merge?
I see that feature freeze for a better than ever R has been announced. May I
ask if there will be or could be "merge" function for data frames? I believe
it would be very nice if this were "centrally" implemented (with regard to
my humble steps to writing such a function and the related error and other
precautions). I know from VR2R.pdf (courtesy Profs. Venables and Ripley)
2003 Feb 05
2
R 1.6 crashes if ² in object displayed on console
Dear R-help,
Under Win98se, the mere presence of this character, ² (Alt+0178), causes R
1.6 to crash, but only when it is in an object displayed to the console.
>x<-"²" #no problem
>x
R crashes with Illegal operation message
graham lawrence
2002 Jun 18
2
model.tables
Windows 2000 R 1.4
I have a split-split plot design that I am analyzing with model <- aov(). I
tried using model.tables(model) and it replied
"Error: subscript out of bounds." I have monkeyed with it a little, but am
wondering if this is indicative of something in particular.
Thanks,
Hank
Martin Henry H. Stevens, Assistant Professor
338 Pearson Hall
Botany Department
Miami