Skip to content

[RFC]: Canberra distance between two strided arrays #831

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

No one assigned

    Labels

    CIssue involves or relates to C.FeatureIssue or pull request for adding a new feature.JavaScriptIssue involves or relates to JavaScript.MathIssue or pull request specific to math functionality.Native AddonsIssue involves or relates to Node.js native add-ons.RFCRequest for comments. Feature requests and proposed changes.difficulty: 3Likely to be challenging but manageable.priority: NormalNormal priority concern or feature request.status: BlockedIssue or pull request which is current blocked.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions