jensen_shannon_divergence: Generalized disequilibrium measure for ordinal pattern...

Description Usage Arguments Details Value Author(s) References Examples

View source: R/distance_measures.R

Description

Computes a normalized form of the Jensen-Shannon Divergence

Usage

1

Arguments

p

An ordinal pattern distribution

q

A second ordinal pattern distribution to compare against p, or a character vector q="unif" (comparison of p to uniform distribution)

Details

This function returns a distance measure.

Value

A vector of length 1.

Author(s)

Sebastian Sippel

References

Martin, M.T., Plastino, A. and Rosso, O.A., 2006. Generalized statistical complexity measures: Geometrical and analytical properties. Physica A: Statistical Mechanics and its Applications, 369(2), pp.439-462.

Examples

1
2
3
p = ordinal_pattern_distribution(rnorm(10000), ndemb = 5)
q = ordinal_pattern_distribution(arima.sim(model=list(ar=0.9), n= 10000), ndemb = 5)
jensen_shannon_divergence(p = p, q = q)

statcomp documentation built on May 29, 2017, 5:51 p.m.

Search within the statcomp package
Search all R packages, documentation and source code