tokens-class {RGeostats} | R Documentation |
This class contains the definition of a set of tokens to be simulated by the Boolean Simulation method.
Each set of tokens is described by its geometry (see tokone-class
for more information).
Each set of tokens is attached a value which gives the proportion of
each set of tokens within the whole population of objects. The
proportions of all sets of tokens must add up to 1 (it is automatically
normalized if this is not the case).
Objects can be created by calls of the form new("tokens", ...)
.
Token Definition
nbtokens
:Object of class "numeric"
Number of tokens
tokones
:Object of class "list"
List of sets of tokens (tokone-class
)
tokens[i]
returns the tokone-class
containing the set of tokens i
.
tokens[i]<-value
copies the contents of the value
into the i-th
item of the tokone-class
Returns the number of token families and the total count of parameters
Same as above but for assignment
Other functions are available, such as:
tokens.input
Define the tokens
interactively
showClass("tokens")