Learn R Programming

geozoning (version 1.0.0)

genData: generate data

Description

generate data

Usage

genData(DataObj = NULL, seed = 0, nPoints = 450, typeMod = "Exp",
  Vpsill = 5, Vrange = 0.2, Vmean = 8, Vnugget = 0, Vanis = 1,
  boundary = list(x = c(0, 0, 1, 1, 0), y = c(0, 1, 1, 0, 0)),
  manualBoundary = FALSE)

Arguments

DataObj

=NULL: simulated data with given seed or a data frame with real data

seed

numeric value used to generate simulated data

nPoints

number of generated raw data points

typeMod

type of variogram model (see vgm) "Gau", "Sph", "Exp"

Vpsill

partial sill in variogram

Vrange

variogram range

Vmean

average data value

Vnugget

nugget in variogram

Vanis

anisotropy in variogram

boundary

list, contains x and y boundaries

manualBoundary

logical, if TRUE a manual boundary is drawn.

Value

a list

tabData

data frame of generated or real data with x,y,z values. x is standardized between 0 and 1, y is standardized with the same ratio used for x

boundary

standardized boundary

VGMmodel

VGM variogram model

modelGen

RM transformed variogram model

ratio

ratio used to normalize x data

Details

description, a paragraph

Examples

Run this code
# NOT RUN {
# simulate data with Gaussian model
resGene=genData(NULL,10,450,"Gau",5,0.2,8,0,list(x=c(0,0,1,1,0),y=c(0,1,1,0,0)),FALSE)
plot(resGene$tabData)
# }

Run the code above in your browser using DataLab