Timeline for Batch rounding with preservation of a sum
Current License: CC BY-SA 4.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 19, 2022 at 0:42 | vote | accept | Andrey Godyaev | ||
Apr 28, 2022 at 17:20 | history | edited | John L. | CC BY-SA 4.0 |
Clearer explanation. Fixed some typos.
|
Apr 28, 2022 at 4:02 | comment | added | John L. | @justhalf Thanks very much. Of course, sorting should be based on $\{a_i\}$. Updated. | |
Apr 28, 2022 at 4:00 | history | edited | John L. | CC BY-SA 4.0 |
Per justhalf's feedback, clarified how the given numbers should be sorted.
|
Apr 28, 2022 at 3:36 | comment | added | justhalf | "To be fair, sort $a_i$ before rounding", you mean sorting based on $\{a_i\}$? So that those numbers will smaller fractional parts will be rounded down and those larger will be rounded up. | |
Apr 27, 2022 at 23:25 | comment | added | John L. | There can be many variations. For example, we can add a tolerance level. Round down when the fractional part is at most 1/8 or the gap is at most -1, and round up when the factional part is larger than 7/8 or the gap is at least 1. For example, we may use neighboring numbers to help determine the rounding direction of the current number. For example, we can let the block size in the mixed method be the first time beyond 100 numbers such that the absolute value of the gap is smaller than 0.1 unless that means more than 1000 numbers, at which time, 1000 numbers will be used as a block. | |
Apr 27, 2022 at 22:52 | comment | added | John L. | @PaŭloEbermann Thanks for the feedback. That list is removed. | |
Apr 27, 2022 at 22:51 | history | edited | John L. | CC BY-SA 4.0 |
Per Paŭlo Ebermann' feedback, removed the list of all the "round half *" methods.
|
Apr 27, 2022 at 22:41 | comment | added | Paŭlo Ebermann |
All the "round half *" methods are basically the same for all values except the exact .5 values, which obviously doesn't work in our case. Not sure what's the point of listing them all.
|
|
Apr 27, 2022 at 21:33 | history | edited | John L. | CC BY-SA 4.0 |
Clearer nouns.
|
Apr 27, 2022 at 18:25 | history | answered | John L. | CC BY-SA 4.0 |