cosine_dist: Computes the cosine similarity between numeric vectors

Description Usage Arguments Value Examples

Description

Computes the cosine similarity between numeric vectors

Usage

1

Arguments

m

the data matrix

Value

Returns the cosine similarity

Examples

1
2
3
a <- c(2, 1, 0, 2, 0, 1, 1, 1)
b <- c(2, 1, 1, 1, 1, 0, 1, 1)
sim <- cosine_dist(rbind(a,b))


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

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.