JSdistVec {cummeRbund} | R Documentation

## JSdistVec

### Description

Returns the Jensen-Shannon Distance (square root of JS divergence) between two probability vectors.

### Usage

    JSdistVec(p, q)

### Arguments

`p` | A vector of probabilities
`q` | A vector of probabilities

### Details

Should not be called directly by user.

### Value

Returns the JS distance as a numeric

### Note

None

### Author(s)

Loyal A. Goff

### References

None

### Examples

    	p<-sample(1:5000,20)
    	q<-sample(1:5000,20)
    	p<-makeprobsvec(p)
    	q<-makeprobsvec(q)
    	JSdistVec(p,q)

[Package cummeRbund version 2.36.0 Index]