-
-
Notifications
You must be signed in to change notification settings - Fork 852
Open
Labels
FeatureIssue or pull request for adding a new feature.Issue or pull request for adding a new feature.Native AddonsIssue involves or relates to Node.js native add-ons.Issue involves or relates to Node.js native add-ons.Needs DiscussionNeeds further discussion.Needs further discussion.RFCRequest for comments. Feature requests and proposed changes.Request for comments. Feature requests and proposed changes.status: BlockedIssue or pull request which is currently blocked.Issue or pull request which is currently blocked.
Description
Description
This RFC proposes adding a function to calculate the Bray-Curtis distance between two strided arrays.
Package: @stdlib/math/strided/distances/braycurtis
The function should have the following signature braycurtis( N, x, strideX, y, strideY )
.
- N: Number of elements
- x: First array
- strideX: Stride for the first array
- y: Second array
- strideY: Stride for the second array
The function should return the Bray-Curtis distance between the two arrays. It is calculated by
d = sum( |x_i - y_i| ) / sum( |x_i + y_i| )
where x_i
and y_i
are corresponding elements from the two arrays.
References
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:
.
Metadata
Metadata
Assignees
Labels
FeatureIssue or pull request for adding a new feature.Issue or pull request for adding a new feature.Native AddonsIssue involves or relates to Node.js native add-ons.Issue involves or relates to Node.js native add-ons.Needs DiscussionNeeds further discussion.Needs further discussion.RFCRequest for comments. Feature requests and proposed changes.Request for comments. Feature requests and proposed changes.status: BlockedIssue or pull request which is currently blocked.Issue or pull request which is currently blocked.