polygram_objective_vector: A function that calculates the objective vector of a...

Description Usage Arguments Value

View source: R/RcppExports.R

Description

A function that calculates the objective vector of a polygram. Needed for the quadratic optimization routine, and can be of independent interest.

Usage

1
polygram_objective_vector(x, ms, s, support)

Arguments

x

a Armadillo<double> vector containing the data

ms

an Armadillo<integer> vector containing the Bernstein degrees. Must be of size |s| + 1

s_aug

an Armadillo<double> vector containing the splits, endpoints not included.

Value

an Armadillo<double> of size sum(ms+1) that contains the objective vector for the optimization program.


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