Skip to content

Commit b2a7692

Browse files
author
OVVO-Financial
committed
NNS 11.1 Beta
1 parent 759ada2 commit b2a7692

File tree

5 files changed

+2
-2
lines changed

5 files changed

+2
-2
lines changed

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Package: NNS
22
Type: Package
33
Title: Nonlinear Nonparametric Statistics
44
Version: 11.1
5-
Date: 2025-02-15
5+
Date: 2025-02-16
66
Authors@R: c(
77
person("Fred", "Viole", role=c("aut","cre"), email="[email protected]"),
88
person("Roberto", "Spadim", role=c("ctb"))

NNS_11.1.tar.gz

4 Bytes
Binary file not shown.

NNS_11.1.zip

88 Bytes
Binary file not shown.

R/SD_Cluster.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ NNS.SD.cluster <- function(data, degree = 1, type = "discrete", min_cluster = 1,
118118
# Use the extraction order inherent in all_vars as a tie-breaker.
119119
extraction_order <- seq_along(all_vars)
120120

121-
epsilon <- 1e-3 # small tie-breaker weight
121+
if(length(clusters)==1) epsilon <- 0 else epsilon <- 1e-3 # small tie-breaker weight
122122
dist_matrix <- as.dist(
123123
outer(cluster_labels, cluster_labels, function(a, b) n * abs(a - b)) +
124124
epsilon * outer(extraction_order, extraction_order, function(i, j) abs(i - j))

src/NNS.dll

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)