tof_find_jsd: Find the Jensen-Shannon Divergence (JSD) between two numeric...

tof_find_jsdR Documentation

Find the Jensen-Shannon Divergence (JSD) between two numeric vectors

Description

Find the Jensen-Shannon Divergence (JSD) between two numeric vectors

Usage

tof_find_jsd(vec_1, vec_2, num_bins = 100)

Arguments

vec_1

A numeric vector.

vec_2

A numeric vector.

num_bins

An integer number of bins to use when binning across the two vectors' combined range. Defaults to 100.

Value

A double (of length 1) representing the JSD between the two vectors.


keyes-timothy/tidytof documentation built on Aug. 28, 2024, 8:37 a.m.