Releases: nspcc-dev/hrw
Releases · nspcc-dev/hrw
v2.0.3
v2.0.2
v2.0.1
v2.0.0
This is a reworked version of the library using completely new generic-based interface. Other significant changes:
Add NaN check in weight verification
Handle NaN values in weight validation function (#7) NaN values can pass the validation since NaN values don't work with float arithmetic and comparisons are always true. Now validation function has check for NaN values.
Weighted sorting with normalized weights
This release contains changes in weighted HRW sorting. Now weighted sorting functions take a slice of normalized weights []float64
as an input. This way, you can use any normalization (e.g. multicriteria normalization) and pass prepared weights to the functions.
Support of weighted sorting
This release contains new functions to support weighted hrw sorting. You can specify weights of the nodes and perform SortSliceByValue()
operation for uniform sorting and SortSliceByWeightValue()
for weighted sorting.
✌️ Fixed in SortSliceByValue issue when weight calculated twice
- fixes for SortSliceByValue
- fixes for tests
🐌 hot fix types
v1.0.5 🐌 hot fix types
🐿 Extend SortSliceByValue with more types
v1.0.4 🐿 Extend SortSliceByValue with more types