tokens.create {RGeostats} | R Documentation |
Create a set of tokens for Boolean simulation
tokens.create(type = 0, factor.x2y = 0, factor.x2z = 0, factor.y2z = 0, prop = 1, lawX = 0, valX = c(100, 0, 0, 0), lawY = 0, valY = c(100, 0, 0, 0), lawZ = 0, valZ = c(100, 0, 0, 0), lawT = 0, valT = c(0, 0, 0, 0), tokens = NA)
type |
Type of the token family:
|
factor.x2y |
When positive, it describes the link between the X and Y extensions of the token: Y_extend = X_extend * factor.x2y. In that case, the set of parameters used to define Y_extension are ignored. |
factor.x2z |
When positive, it describes the link between the X and Z extensions of the token: Z_extend = X_extend * factor.x2z. In that case, the set of parameters used to define Z_extension are ignored. |
factor.y2z |
When positive, it describes the link between the Y and Z extensions of the token: Z_extend = Y_extend * factor.y2z. In that case, the set of parameters used to define Z_extension are ignored. |
prop |
Proportion of the current family of tokens. This parameter is essential the Tokens description contains several token families. This parameter gives the proportion of the current family type with respect to the whole set of families. If needed, the proportions of each family are rescaled by the sum of proportions. |
lawX |
Type of randomization for the X_extend parameter. See Details for more information. |
valX |
Vector of parameters which characterize the randomization of X_extend parameter. See Details for more information. |
lawY |
Type of randomization for the Y_extend parameter. See Details for more information. |
valY |
Vector of parameters which characterize the randomization of Y_extend parameter. See Details for more information. |
lawZ |
Type of randomization for the Z_extend parameter. See Details for more information. |
valZ |
Vector of parameters which characterize the randomization of Z_extend parameter. See Details for more information. |
lawT |
Type of randomization for the Angle Rotation (around Z) parameter. See Details for more information. |
valT |
Vector of parameters which characterize the randomization of Angle Rotation (around Z) parameter. See Details for more information. |
tokens |
When defined, the current Token definition is concatenated to the one(s) already stored in this argument. |
Each parameter can be randomized according to the following convention. Depending on the choice, a set of parameters are necessary: they must be provided in the corresponding val* vector of values refered by their rank:
0 Constant value (1)
1 Uniform between minimum (1) and maximum (2)
2 Gaussian with mean (1) and standard deviation (2)
3 Exponential with mean (1) and scale factor (2)
4 Gamma with mean (1) and parameter (2)
5 Stable with parameters alpha (1), beta (2), gamma (3) and delta (4)
6 Beta_1 with two parameters
7 Beta_2 with two parameters
A tokens-class
object.