get_monotonicity_constraints: Returns the constraints needed to enforce monotonicity of a...

Description Usage Arguments Value

View source: R/constraints.R

Description

Returns the constraints needed to enforce monotonicity of a Bernstein polygram.

Usage

1

Arguments

s

The split points.

monotone

Either "decreasing" or "increasing". Can also be NULL, but that should have been caught be now.

m

The order of the Bernstein densities.

Value

A list containing a constraint matrix and upper and lower bounds for the monotone


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