Description Usage Arguments Value
View source: R/loss_functions.R
Calculates the L2-loss between two polygram objects. The first argument is interpreted as the "true" polygram. Only supported when m are equal for the moment.
1 2 | polygram_vs_loss(polygram_object_1, polygram_object_2,
discrepancy = FALSE)
|
polygram_object_1 |
A polygram object, interpreted as the true density. |
polygram_object_2 |
A polygram object. |
discrepancy |
If true, only returns the discrepancy. |
The pth penalty.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.