From cca5399d7e9ec019f91bab60726b3ad2687ccb7a Mon Sep 17 00:00:00 2001 From: Alex Zwanenburg Date: Sat, 21 Sep 2024 17:25:12 +0200 Subject: [PATCH] Thresholds for clustering with correlation-based metrics are now computed correctly --- NEWS.md | 2 ++ R/PairwiseSimilarity.R | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index fe5f8c2b..9bb13af1 100644 --- a/NEWS.md +++ b/NEWS.md @@ -20,6 +20,8 @@ - The main panel for composite plots (e.g. calibration plots, Kaplan-Meier curves) is no longer of fixed width when title or subtitles are present. +- Thresholds for clustering with correlation-based metrics are now computed correctly. + # Version 1.4.8 (Valorous Viper) ## Bug fixes diff --git a/R/PairwiseSimilarity.R b/R/PairwiseSimilarity.R index 713e97e6..c948488d 100644 --- a/R/PairwiseSimilarity.R +++ b/R/PairwiseSimilarity.R @@ -1209,7 +1209,7 @@ get_similarity_range <- function(similarity_metric, as_distance = FALSE) { value_range <- sort(unique(value_range)) } - return(object@range) + return(value_range) }