Displaying 3 results from an estimated 3 matches for "rpoint".
Did you mean:
point
2007 Oct 11
3
reason for error in small function?
Running the function below, tested using the cardiff dataset from
splancs generates the following error. What changes do I need to
make to get the function to work? Thanks. --Dale
> gen.rpoints(events, poly, 99)
> rpoints
Error: object "rpoints" not found
# test spatial data
library(splancs)
data(cardiff)
attach(cardiff)
str(cardiff)
events <- as.points(x,y)
### non-working function ####
gen.rpoints <- function(events, poly, nsim){
rpoints <- array(0, dim=c(nrow(...
2010 Aug 19
0
2d kriging with anisotropy on an irregular network (RandomFields Package)
...regular network
- 3d-kriging, with and without anisotropy, some data from a regular network
Here is my script highly inspired by some examples from the package.
rm(list=ls())
library(RandomFields)
###############
# PARAMETERS
###############
Mean<-1
Variance<-4.5
Range<-1
nbRainG<-20
rPoint <- 1:nbRainG
points1 <- rPoint
xMax<-5
yMax<-10
##############################################################
#CREATION OF AN IRREGULAR RAINGAUGE NETWORK, DATA SIMULATION
##############################################################
model="exponential"
param1 <- c("...
2006 May 17
4
uniform and clumped point plots
I am trying to generate two dimensional random coordinates.
For randomly distributed data I have simply used
>xy<-cbind(runif(100),runif(100))
However I also want to generate coordinates that are more uniformly
distributed, and coordinates that are more contagiously distributed than
the above.
Can anyone make any suggestions
Thanks.
Dr Terry Beutel
Rangeland Scientist
Animal