similar to: Random unit vectors in R^{n}

Displaying 20 results from an estimated 6000 matches similar to: "Random unit vectors in R^{n}"

2004 Mar 17
3
unit testing framework for R?
In a quick search of the R website just now, I found no mention of a unit testing framework for R. I hope to find something in the style of Java's JUnit, or Python's unittest. Is such a thing available? Thanks, - Paul Shannon Institute for Systems Biology Seattle
2001 Jul 13
6
AnonCVS
Hi All, I would like to use anonymous cvs, but it appears not to be working (again?). There was a discussion back in Jan-Feb about whether to continue supporting it, but it seemed that Tony Rossini got it working and the discussion left off there. Did someone decide to disable it, or is it just not working properly? Here's the details: $ cvs -d
2002 Aug 30
5
density() returns a density function that does not add up to 1
Dear R users, I ran into this curious problem: > d <- rnorm(100) > d.density <- density(d) > sum( d.density$x * d.density$y) [1] 2.517502 Admittedly the method of computing the mass under the density curve at line 3 is crude. But 2.5 is pretty far from 1, the value it should be. I tried a few other dataset and got similar result. Am I missing something obvious? Or is the return
2008 Apr 26
6
quasi-random sequences
Dear list useRs, I have to generate a random set of coordinates (x,y) in [-1 ; 1]^2 for say, N points. At each of these points is drawn a circle (later on, an ellipse) of random size, as in: > N <- 100 > > positions <- matrix(rnorm(2 * N, mean = 0 , sd= 0.5), nrow=N) > sizes<-rnorm(N, mean = 0 , sd= 1) > plot(positions,type="p",cex=sizes) My problem is to
2002 Jul 02
4
XEmacs vs. GNU Emacs?
As a user of only R, I don't use much of the potential of ESS and Emacs. Without entering a religious feud, is there any reason I should use XEmacs rather than my current GNU Emacs? (I looked on the XEmacs site, but I didn't understand the programming issues they were talking about (over my head).) Martin Henry H. Stevens, Assistant Professor 338 Pearson Hall Botany Department Miami
2002 Aug 09
2
error starting SJava: classpath
Dear R experts, Sorry, I am resending this, since I have not received this mail myself for the past 5 hours. I saw a similar question dated July 2. But there is no answer to it. Does anybody have a solution to it? I am using window NT, and the R version is 1.5.1, the SJava package is the binary version SJavaWin_0.62-8.zip. Here are the error message: > library(SJava) > .JavaInit()
2002 Apr 08
4
Missing data and Imputation
Hi Folks, I'm currently looking at missing data/imputation methods (including multiple imputation). S-Plus has a "missing data library". What similar resources are available within R? Or does one roll one's own? Best wishes to all, Ted. -------------------------------------------------------------------- E-Mail: (Ted Harding) <Ted.Harding at nessie.mcc.ac.uk>
2002 Jun 30
4
modifying a vector
Hello everyone, Thanks to all who offered suggestions after my initial query to the list. I've been busy trying to absorb the docs as fast as possible, but this little thing has me stumped for the moment. I'm creating a random sample of 100 item and saving it to a vector named 'iq'. I'd like to create a second vector (iq_prime, say) by adding 20 to each element of the
2002 Jun 30
4
modifying a vector
Hello everyone, Thanks to all who offered suggestions after my initial query to the list. I've been busy trying to absorb the docs as fast as possible, but this little thing has me stumped for the moment. I'm creating a random sample of 100 item and saving it to a vector named 'iq'. I'd like to create a second vector (iq_prime, say) by adding 20 to each element of the
2002 Nov 27
5
further on ESS/XEmacs for Windows
Dear list members, I've had helpful feedback from a number of people, several of whom experienced some problems getting my XEmacs/ESS configuration files for Windows to work properly. I will, of course, make changes based on this feedback, but the following information may be of use in the interim: (1) It's clear that my instructions and installation procedure were insufficiently
2002 Nov 27
5
further on ESS/XEmacs for Windows
Dear list members, I've had helpful feedback from a number of people, several of whom experienced some problems getting my XEmacs/ESS configuration files for Windows to work properly. I will, of course, make changes based on this feedback, but the following information may be of use in the interim: (1) It's clear that my instructions and installation procedure were insufficiently
2002 Apr 22
2
could we add an argument to suppress printing of levels for print.factor()?
could we add an argument to suppress printing of levels for print.factor()? i.e.: print.factor <- function (x, quote = FALSE, print.levels = TRUE, ...) ## MODIFIED { if (length(x) <= 0) cat("factor(0)\n") else print(as.character(x), quote = quote, ...) if (print.levels) { ## ADDED cat("Levels:
2002 Jan 23
4
driving R from Python (calldll?)
Sam Rushing's Python extension 'calldll' will supposedly give me access to any DLL, and presumably R.DLL in particular, from Python. I have no experience manipulating DLLs as yet. I am learning Python. I can't find any simple step-by-step instructions on how to get done what I want to do. Does anyone have experience with this? Is there a better way? Of course, one can use
2001 Nov 27
1
seek helppage. Possible clarification?
seek(zz,where=NewPosition) returns the OldPosition of connection zz (of the appropriate "pointer", i.e. read or write). Currently, the docs have: > Details: > > `seek' with `where = NA' returns the current byte offset of a > connection (from the beginning), and with a positive `where' > argument the connection is re-positioned (if possible) to
2002 Jun 19
1
new version of print.factor
Thanks to Tony Plate for letting me know what the abbreviate.arg option does. I think this could be made more flexible (I.e. =TRUE, =FALSE, =#, where # would be passed to the abbreviate min.length argument). But it follows the example I was given. "print.factor" <- function (x, quote = FALSE, max.levels=5, print.levels = {if (max.levels==0) FALSE else TRUE},
2002 Jun 19
1
Anon CVS updates?
Is the anonymous CVS repository for R presently broken? There haven't been many updates coming through and the repository files seem to differ significantly from the rsync version of R-devel... Byron Ellis (bellis@hsph.harvard.edu) "Oook" - The Librarian Please finger bellis@hsph.harvard.edu for PGP keys
2000 Oct 17
3
"wizard" for building R-packages...
Suppose one wanted to build an R wizard for packaging... One would need to specify and create: package-name/ package-name/Description package-name/INDEX package-name/R/ package-name/man/ package-name/src/ >From this, we'd "probably" like to: - script-up the Description - provide a script for regenerating INDEX by calling out to the
2004 May 28
2
orca binary?
Dear R People: Is there a binary version for rorca, please? Thanks, Laura mailto: lauraholt_983 at hotmail.com R Windows 1.9.0
2002 Dec 17
1
rsprng doesn't install on Debian (woody) (PR#2378)
Full_Name: Emmanuel Charpentier Version: 1.6.1 OS: Linux 2.4.20 / Debian Woody Submission from: (NULL) (80.15.78.96) rsprng depends on libraries available in the "genesis" package. However, even when Genesis is installed, the installation of the source package fails for not finding rsprng.h. It turns out that Debian installs it in a subdirectoru of /usr/include, and that the rsprng
2000 Nov 10
1
Executing an R function from Java.
Is anyone aware of a mechanism by which I could execute an R function from within java (say a servlet). thanks Richard Piper -- Intensive Care Unit, RNS Hospital, Sydney. Phone: 612-9926-8656 or 8617 FAX: 612-9439-8418 Page: 612-9962-4936 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html