Description Usage Arguments Value
View source: R/loss_functions.R
Returns the true L2-loss for a weight matrix V and underlying distribution d. Useful for theoretical investigations or simulation studies.
1 | polygram_L2_loss(d, polygram_object, discrepancy = TRUE)
|
d |
The true density. |
discrepancy |
If true, only returns the discrepancy. |
s |
The vector of splits. If a natural number K, s is chosen as (1:K)/(K+1). Defaults to length(data)^(1/3) |
V |
Weight matrix for the Bernstein polygram. |
A real number, the L2-loss.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.