Description Usage Arguments Value
View source: R/loss_functions.R
Calculates the empirical or theoretical Bernstein contributions for the data "data" (or density "d"), splits vector s, with respect to Bernstein polynomials of order m. Used as a helper function in the polygram_objective_vector function.
1 | empirical_bernstein(data, s, m, d = NULL)
|
data |
The data. Can be either a |
s |
The vector of splits. |
m |
The order of the Bernstein polynomial. |
d |
Optional density, which will override the data if supplied. |
An (|s|-1) x (m+1)-dimensional matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.