rule.create {RGeostats}R Documentation

Create a Rule from arguments

Description

Create a Rule from arguments

Usage

rule.create(nodes, mode = "std", rho = 0, slope = 1, sh_down = 0, sh_dsup = 0, 
		   shift = c(0, 0, 0))

Arguments

nodes

A vector of keywords describing the different nodes. Each keyword should be one of the following:

  • S Threshold along the first GRF

  • T Threshold along the second GRF

  • F Facies definition followed by the facies rank (starting from 1): F1 for example

mode

Type of Lithotype Rule. It should be one of the following:

  • std for a standard Lithotype Rule

  • shift for a Shifted Lithotype Rule

  • shadow for a Shadow Lithotype Rule

rho

Correlation between the two underlying gaussian random functions

slope

Slope for the Sahdow

sh_down

Minimum truncation value (used for Shadow only)

sh_dsup

Maximum truncation value (used for Shadow only)

shift

Shift between the two underlying gaussian random functions (used for Shift only)

Value

A rule-class structure

Examples

# Creating a Mono-Gaussian Lithotype Rule with three facies:

rule = rule.create(c("S","F1","S","F2","F3"))
plot(rule)

# Creating a Bi-Gaussian Lithotype Rule with four facies and 
# a correlation coefficient of 0.1:

rule = rule.create(c("S","T","F1","T","F2","F3","F4"),rho=0.1)
plot(rule)

rm(rule)

[Package RGeostats version 14.0.10 Index]