Description Usage Arguments Details Value Examples
(bn) Numeric values are accepted as easyp expressions. eas can be a vector to encompass repeated variables. Access to the bn component allow to know if parent nodes are repeated or not, but the number of repetitions of the dealt node is supposed already established. Rounding and transformation are options.
1 | easyp2code(eas, bn, iin, transfo=FALSE, bugs=FALSE)
|
eas |
either a numeric or a rebastaba expression (character). Its length can be greater than one for repeated standard scalar distributions or vector parameters of other distributions. |
bn |
The bn giving the context of the translation. |
iin |
internal numbering of the bn node concerned with the easyp object. |
transfo |
Are rounding and transformation accepted? |
bugs |
Must the code be bugs or R (default). |
This function must be called to define the parameters of the standard links like "normal", "Bernoulli", "multinomial" and so on... The bn is not finished, so it is not checked but the dertermination of repetition is supposed to be done [repetition <=> (convenient distribution \& (length(lvar)>1))]. Notice that the slots @par \& @lvar of the iin-th node are supposed already completed.
An interpretable character string to be included when generating code.
1 2 3 4 5 6 | rebastaba3k("RESET"); # (only for R checking)
cat(easyp2code("{{A}}", rebastaba.bn2, 2), "\n");
cat(easyp2code(1234, rebastaba.bn2, 2), "\n");
cat(easyp2code("2*pi", rebastaba.bn2, 2), "\n");
cat(easyp2code("1+sqrt({{A}})", rebastaba.bn2, 2), "\n");
cat(easyp2code("1+sqrt({{A}}*{{B}})", rebastaba.bn2, 2), "\n");
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.