Learn R Programming

contingency (version 0.0.10)

kl: Kullback-Leibler Divergence

Description

Get the KL Divergence between two discrete distributions

Usage

kl(x, y, ...)

# S3 method for default kl(x, y, ...)

# S3 method for tables kl(x, y, ...)

Value

a numberic value, vector or matrix of KL-divergences.

Arguments

x, y

vectors (of probabilities)

...

other arguments to methods

Methods (by class)

  • default: Default method for vectors

  • tables: Method for tables object