similar to: how to generate uniformly distributed random integers

Displaying 20 results from an estimated 1000 matches similar to: "how to generate uniformly distributed random integers"

2012 Jul 12
6
read.table with numeric row names
I have a text file like this 2.5 3.6 7.1 7.9 100 3 4 2 3 200 3.1 4 3 3 300 2.2 3.3 2 4 I used "r <- read.table("a.txt", header=T)" The row names becomes X2.5, X3.6... What I need is the row names are numeric, so I can use the row names as numbers on x-axis for plotting. e.g. "plot(colMeans(r)~names(r))",
2013 Oct 08
3
Latin Hypercube Sample and transformation to uniformly distributed integers or classes
Hi, I'd like to use Latin Hypercube Sampling (LHC) in the the context of uncertainty / sensitivity analysis of a complex model with approximately 10 input variables. With the LHC approach I'd like to generate parameter combinations for my model input variables. Therefore I came across an simple example here on the mailing list (
2006 Oct 09
2
How to generate the random numbers uniformly distributed on the unit disc?
Hi, I want to get random number which is uniformly distributed on the unit disc. How can I do that with R? Best wishes, WAN WAN [[alternative HTML version deleted]]
2010 Jun 18
3
ploting dots with quentiles
http://r.789695.n4.nabble.com/file/n2260087/%E6%8D%95%E8%8E%B7.png I am going to plot my data set like this, with means and 25% & 75% quentiles. I've tried "boxplot", but the output is not what I want. Should I use other functions? Thanks -- View this message in context: http://r.789695.n4.nabble.com/ploting-dots-with-quentiles-tp2260087p2260087.html Sent from the R help
2011 Feb 20
8
Generating uniformly distributed correlated data.
I wish to generate a vector of uniformly distributed data with a defined correlation to another vector The only function I have been able to find doing something similar is corgen from the library ecodist. The following code generates data with the desired correlation to the vector x but the resulting vector y is normal and not uniform distributed library(ecodist) x <- runif(10^5) y
2011 Jun 10
3
Test if data uniformly distributed (newbie)
Hello, I have a bunch of files containing 300 data points each with values from 0 to 1 which also sum to 1 (I don't think the last element is relevant though). In addition, each data point is annotated as an "a" or a "b". I would like to know in which files (if any) the data is uniformly distributed. I used Google and found out that a Kolmogorov-Smirnov or a Chi-square
2018 Apr 10
0
Test if data uniformly distributed (newbie)
Dear Mr. Savicky, I am currently working on a project where I want to test a random number generator, which is supposed to create 10.000 continuously uniformly distributed random numbers between 0 and 1. I am now wondering if I can use the Chi-Squared-Test to solve this problem or if the Kolmogorov-Smirnov-test would be a better fit. I came across one of your threads on the internet where you
2011 Aug 25
2
Create two uniformly random variables correlated
Hello, I want to create two random variables (x1,x2) both with uniform distribution bounded by (-1) and (1) that has a correlation of 0.6 between them. Does somebody know how I can do it? For normal random variables I known how to implement it with the rmvnorm command but I don't know how to do it with variables uniformly distributed. Thanks a lot. Alexandra [[alternative HTML
2010 May 10
1
R algorithm/package for creating spatial autocorrelation of uniformly distributed landscape values
Dear all: I would like to create a landscape of environmental values that follow a uniform frequency distribution and also have spatial autocorrelation in the landscape. I was wondering if there is an algorithm and/or package out there that creates autocorrelation of values that are distributed according to a non-normal frequency distribution. Any suggestions are greatly appreciated. Thank you,
2010 Dec 23
2
Non-uniformly distributed plot
Hi, I would like to plot a linear relationship between variable x and y. Can anyone help me with scaled plotting and axes so that all data points can be visualized somehow evenly? Plaint plot(x,y) will generate condensed points near (0,0) due to several large data points. Thank you. Eric > x [1] 0.3497630 3.3948900 1.5224900 0.2690660 0.1078720 0.0451689 0.5902680 0.2757550
2017 Jan 20
3
LLVM pass error
I am getting the following error while compiling my pass file with clang to emit bitcode Hello1.cpp:1:10: fatal error: 'llvm/Pass.h' file not found #include "llvm/Pass.h" ^ 1 error generated. I had included this .cpp file for implementing function pass in lib/Transform/Hello1 directory and also made approriate changes in cmakelists.txt file and again build from the
2004 Apr 15
2
how to cite a library
Dear R users, I used the multivariate random numbers generation function in MASS for my study. I wonder what is an approriate way to cite the library and its authors in my publication to express my gratefulness? best regards, Yu-Kang
2008 Apr 14
2
linear regression "group by"
Hi all. I'm brand new to R. My dataset (stored in MySQL) is a list of weather stations in rows by year with various weather variables in columns, for example: STNID YEAR TEMP DEWP station1 1990 54 50 station1 1991 23 10 station1 1992 34 18 station2 1990 45 41 station2 1991 32 25 station2 1992 21 11 I'm trying to run
2002 Dec 09
1
ifelse ?
Hi, i want transform data and using apply(data,2,fuz) , but i don't know why the values < low & > high don't get 0 or 1, they get the value from Formula ,too "((x-low)/(high-low))" what's not the intention ? ....is switch more approriate !? thanks for advance ,Christian fuz <- function (x) { #x <- na.omit(x) low <- quantile(x,0.15)[[1]] high
2000 Oct 08
1
Mac Vorbis Player
I've got a working (standalone) Mac Vorbis player. It doesn't handle clipping nicely (it makes narsty noises that XMMS doesn't), the code's not commented yet, there's no other way to quit while the sound plays besides force quitting, and there's no real error checking, but it works and I got around the problem with os_types.h by putting a mac-specific version in the
2003 May 11
1
simulating data
..for a "unit test" i need a lot of rows in my database, so i simulate. My problem, using Win2k,R.1.7.0, 256RAM is that i'm getting memory-erros go about the 1000.000 border , but i need bigger test data. Ok is approriate buy more RAM, but is there a possibilty simulate a lot of single rows, one after another and between this 2 steps -> Add th row to database and delete them
2001 Oct 19
1
What was wrong with this sequence?
I thought I understood things, but I guess not. I recently configured a new system for a colleague as follows: 1. Redhat 7.1 install Dell Inspiron 8100 - three partitions on 30G - /, /boot, swap 2. Boot up 3. configure, make, make install of linux-2.4.12-ac3 (with approriate lilo changes) lilo (but no reboot until 8) 4. rpm -U mount-2.11g-5.i386.rpm (from rawhide)
2002 Mar 21
1
A Few Questions
Hi All R Users, I have a few questions, I'm sure that for most you they will be simple. 1. I am trying to write an object to a file. The dimensions of the object have name (by using dimnames(x) = ....). The problem is when I save that data to a file, the dimension name are not written, just the value. This is not very usefull since I am sorting the object first and if the dimension
2010 Sep 08
3
Uniform Distribution
Hello, I would like to uniformly distribute values from 0 to 200. Can someone help me find the appropriate uniform distribution generator? I would like to thank you in advance for your help. Best Regards Alex [[alternative HTML version deleted]]
2013 Apr 10
2
Bug#705124: base: Filesystem corruption issue
reassign 705124 xen # even though i'm not 100% sure it's a xen issue, it smells like one, # also because I use pretty similar setups (just without xen) without issues # # there are more logs from the bug submitter in the BTS # # and downgrading might also be approriate... thanks On Mittwoch, 10. April 2013, Anthony Sheetz wrote: > Package: base > Severity: critical > Tags: lfs