Normalize similarity scores
Examples
similarities <- c(0.2, 0.5, 0.8, 1.0, 0.3)
norm_sim(similarities)
#> [1] 0.000 0.375 0.750 1.000 0.125
Normalize similarity scores
similarities <- c(0.2, 0.5, 0.8, 1.0, 0.3)
norm_sim(similarities)
#> [1] 0.000 0.375 0.750 1.000 0.125