stdlib icon indicating copy to clipboard operation
stdlib copied to clipboard

[RFC]: Chebyshev distance between two strided arrays

Open Planeshifter opened this issue 2 years ago • 0 comments

Description

This RFC proposes adding a function to calculate the Chebyshev distance between two strided arrays.

Package: @stdlib/math/strided/distances/chebyshev

The function should have the following signature chebyshev ( 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 Chebyshev distance between the two arrays. The Chebyshev distance is also known as the maximum metric. It is calculated by taking the maximum of the absolute differences between the elements.

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:.

Planeshifter avatar Feb 01 '23 21:02 Planeshifter