polygram_vs_loss: Calculates the L2-loss between two polygram objects. The...

Description Usage Arguments Value

View source: R/loss_functions.R

Description

Calculates the L2-loss between two polygram objects. The first argument is interpreted as the "true" polygram. Only supported when m are equal for the moment.

Usage

1
2
polygram_vs_loss(polygram_object_1, polygram_object_2,
  discrepancy = FALSE)

Arguments

polygram_object_1

A polygram object, interpreted as the true density.

polygram_object_2

A polygram object.

discrepancy

If true, only returns the discrepancy.

Value

The pth penalty.


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