get_shape_constraints: Returns the constraints needed to enforce convexity /...

Description Usage Arguments Value

View source: R/constraints.R

Description

Returns the constraints needed to enforce convexity / concavity of a Bernstein histogram.

Usage

1
get_shape_constraints(ms, s, shape)

Arguments

s

The split points.

shape

Can be "convex" or "concave" or NULL.

m

The order of the Bernstein densities.

Value

A constraint matrix.


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