View source: R/print_methods.R
print_entropy | R Documentation |
The function prints the vector of entropies for each possible action. Depending on printing options, additional information about the probability calculations can be provided.
print_entropy(entropy, digits = 3, print_all = FALSE)
entropy |
The entropy measure from |
digits |
The number of digits to round to. Default 3. |
print_all |
If TRUE will print all information on intermediary calculations |
design <- matrix(c(-1, -1, -1, -1, 1,
-1, 0, 0, -1, 0,
-1, 0, -1, 0, 0,
0, 0, -1, 0, -1), nrow = 4, byrow = TRUE)
entropy <- calculate_entropy(design)
print_entropy(entropy)
print_entropy(entropy, digits = 4)
print_entropy(entropy, print_all = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.