Description Usage Arguments Details Value Examples
(dn) This function creates a /dn/ object simulating bn simu
times.
1 |
bn |
the bn object with which to simulate |
simu |
Either (1) a |
score |
When TRUE, an additional variable scoring the
likelihood of each individual according to the variable domains is
added. See the function |
In a first version, the function was performing a genuine simulation from the distributions associated to each node of the bn. Then, it was found convenient to allow 'already known nodes' using simu as a matrix.
The resulting dn object
1 2 3 4 5 6 7 | rebastaba3k("RESET"); # For R convenience when checking
print(bn2dn(rebastaba.bn1, 10), quoi="i", simu=100);
print(bn2dn(rebastaba.bn2, 10), quoi="i", simu=100);
print(bn2dn(rebastaba.bn3, 10), quoi="i", simu=100);
print(bn2dn(rebastaba.bn4, 10), quoi="i", simu=100);
print(bn2dn(rebastaba.bn5, 10), quoi="i", simu=100);
print(bn2dn(rebastaba.bn6, 10), quoi="i", simu=100);
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.