View source: R/set_Parameter.R
set_Parameter | R Documentation |
The function defines one model parameter used to generate a set of virtual grains. A parameter is defined in a probabilistic way, as parametric distribution function. Each parameter of the distribution function can be changed through time using set_Rule.
set_Parameter(book, parameter, type)
book |
list object, rule book to be edited. |
parameter |
character scalar, keyword defining the parameter to be defined. Some parameters can be described by more than one function, see details. |
type |
character scalar, keyword defining the distribution
function used to describe the parameter. See details for available
keywords, default is |
The following parameter types are available:
exact
: parameter does not vary at all. No additional
parameters needed except for vector value
, defining the
constant values for corresponding depths.
uniform
: parameter varies following a uniform distribution.
The following additional parameter vectors are required: min
(minimum) and max
(maximum)
normal
: parameter varies following a normal distribution,
which is defined by mean and standard deviation
gamma
: parameter varies following a gamma distribution,
defined by shape parameter, scale parameter)
and offset (defining constant offset of values)
A list object.
Michael Dietze, GFZ Potsdam (Germany)
## get empty rule book book_1 <- get_RuleBook(book = "empty") ## set density from default "normal" to "exact" book_2 <- set_Parameter(book = book_1, parameter = "density", type = "exact") book_1$density$density_1$type book_2$density$density_1$type
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.