penalty: Returns the penalty of order p for a polygram object.

Description Usage Arguments Value

View source: R/loss_functions.R

Description

Returns the penalty of order p for a polygram object.

Usage

1
penalty(polygram_object, p = 0)

Arguments

polygram_object

A polygram object.

p

Derivative. Only supported for p = 0 right now.

Value

The pth penalty.


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