col_JS_divergence: Helper function to calculate the Jensen-Shannon divergence

View source: R/pwm_utils.R

col_JS_divergenceR Documentation

Helper function to calculate the Jensen-Shannon divergence

Description

The 2 data.frames p and q must have the same dimensions. The calculated data.frame m is the mean between p and q

Usage

col_JS_divergence(p, q)

Arguments

p

A data.frame of positional probabilities

q

Another data.frame of positional probabilities

Value

A numeric list

Examples

H_i <- mapply(FUN = col_JS_divergence, p = ppm_p, q = ppm_q) 

Ni-Ar/niar documentation built on Feb. 3, 2025, 9:25 a.m.