WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Floor vs Ceil when identifying the index #84

@karayusuf

Description

@karayusuf

I recently noticed that the library floors the result when determining the bin index.
However, the paper seems to indicate the we should ceil the result.

The floor logic is consistent across the various language implementations, so I assume it is correct.
Could someone please explain the difference? Perhaps I'm just looking at the wrong thing?


Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions