stdlib
stdlib copied to clipboard
[RFC]: Canberra distance between two strided arrays
Description
This RFC proposes adding a function to calculate the Canberra distance between two strided arrays.
Package: @stdlib/math/strided/distances/canberra
The function should have the following signature canberra( N, x, strideX, y, strideY ).
The Canberra distance is a measure of dissimilarity between two samples in a data set.
The Canberra distance between two elements is as follows:
(abs(x[i] - y[i]) / (abs(x[i]) + abs(y[i]))
See:
Related Issues
None.
Questions
No.
Other
No.
Checklist
- [X] I have read and understood the Code of Conduct.
- [X] Searched for existing issues and pull requests.
- [X] The issue name begins with
RFC:.