Use integer weights #1

Open
opened 2025-12-28 18:15:58 +00:00 by sami · 2 comments
Owner

Originally created by @fyrchik on GitHub (Sep 9, 2020).

float weights are cumbersome. We can use integer ones (or some kind of decimals) as they are easier to work with in multiple languages.

Originally created by @fyrchik on GitHub (Sep 9, 2020). `float` weights are cumbersome. We can use integer ones (or some kind of decimals) as they are easier to work with in multiple languages.
Author
Owner

@alexvanin commented on GitHub (Sep 9, 2020):

I think it is possible to normalize values, considering 1.0 as math.MaxUint64 (32, 16?) and 0.0 as 0.

@alexvanin commented on GitHub (Sep 9, 2020): I think it is possible to normalize values, considering `1.0` as `math.MaxUint64` (32, 16?) and `0.0` as `0`.
Author
Owner

@fyrchik commented on GitHub (Sep 11, 2020):

Actually we can use both and corresponding suffix to function names (U64, F64).

@fyrchik commented on GitHub (Sep 11, 2020): Actually we can use both and corresponding suffix to function names (`U64`, `F64`).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nspcc-dev/hrw#1
No description provided.