Open
Description
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
- I have read and understood the Code of Conduct.
- Searched for existing issues and pull requests.
- The issue name begins with
RFC:
.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
Issue involves or relates to C.Issue or pull request for adding a new feature.Issue involves or relates to JavaScript.Issue or pull request specific to math functionality.Issue involves or relates to Node.js native add-ons.Request for comments. Feature requests and proposed changes.Likely to be challenging but manageable.Normal priority concern or feature request.Issue or pull request which is current blocked.