empirical_bernstein: Calculates the empirical or theoretical Bernstein...

Description Usage Arguments Value

View source: R/loss_functions.R

Description

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.

Usage

1

Arguments

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.

Value

An (|s|-1) x (m+1)-dimensional matrix


JonasMoss/polygrams documentation built on Nov. 8, 2019, 5:19 p.m.