You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Correct FREQUENCY output and simplify implementation (#2286)
- Removed the incorrect `c[1], c[2] = c[2], c[1]` swapping logic so results match Excel
- Use row-major traversal and ensure output order
- Replaced the redundant allocation and assignment loops with a single `make` allocation for the output matrix.
- Added comprehensive test cases in `calc_test.go` using `INDEX` and array constants to verify the correct distribution of counts across all buckets, ensuring the removal of the swap logic maintains accurate behavior
- Update dependencies modules and documentation
0 commit comments