Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

closest ? #1

Open
brentp opened this issue Nov 20, 2024 · 2 comments
Open

closest ? #1

brentp opened this issue Nov 20, 2024 · 2 comments

Comments

@brentp
Copy link

brentp commented Nov 20, 2024

would you consider adding a closest method to the rust implementation?

@kcleal
Copy link
Owner

kcleal commented Nov 20, 2024

Hi @brentp,
Yes, I'm sure this could be added - could you provide some more details about what you had in mind. Do you just want the closest interval to the query to be returned, or a distance, index, or something else? Also, if the query overlaps some reference intervals do you want the function to return one of these, or are you interested in closest non-overlapping? Thanks!

@brentp
Copy link
Author

brentp commented Nov 20, 2024

hi Kez, yeah, I see what you mean, there are a lot of choices. Here's what comes to mind based on my use-case and some generality:

  1. what's returned if no overlaps: either the interval(s) or index(es) returned would be great.
  2. what's returned if overlaps: all overlapping (intervals or indexes)

so maybe a parameter could indicate the n closest that the user wants and the result always contains all ties.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants