Go to file
Fiona Ebner 40e3f47b8e pve static: add one to avoid boosting tiny relative differences
Only the relative difference for values between different alternatives
is relevant, meaning 0.002 vs 0.004 and 0.2 vs 0.4 will influence the
scoring in the same way. This is not really desirable, because values
closer to 1.0 indicate higher load and thus should influence the
scoring more than differences that are actually tiny, but big when
viewed as a relative difference.

To avoid the issue, simply add 1.0 to all values. Like that, 1.002 vs
1.004 will also be small when viewed as a relative difference.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
2023-03-21 17:53:07 +01:00
.cargo initial commit 2022-11-11 08:37:48 +01:00
debian bump version to 0.2.0-1 2023-03-21 14:54:34 +01:00
src pve static: add one to avoid boosting tiny relative differences 2023-03-21 17:53:07 +01:00
tests drop Topsis prefix of all the types in topsis:: 2022-11-11 13:50:42 +01:00
.gitignore add Debian packaging 2022-11-11 08:38:03 +01:00
Cargo.toml bump version to 0.2.0-1 2023-03-21 14:54:34 +01:00
Makefile add Debian packaging 2022-11-11 08:38:03 +01:00
rustfmt.toml initial commit 2022-11-11 08:37:48 +01:00