Skip to content

Commit 74b9bcd

Browse files
committed
updates
1 parent 673d0bd commit 74b9bcd

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

R/00_pmclust_reduceK.r

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,14 @@ pmclust.reduceK <- function(X = NULL, K = 2, MU = NULL,
6161
}
6262

6363
# Get class numbers.
64-
N.CLASS <- get.N.CLASS(K)
64+
if(algorithm[1] %in% .PMC.CT$algorithm.gbd){
65+
N.CLASS <- get.N.CLASS(K)
66+
} else if(algorithm[1] %in% .PMC.CT$algorithm.dmat){
67+
N.CLASS <- get.N.CLASS.dmat(K)
68+
} else{
69+
comm.stop("The algorithm is not found.")
70+
}
71+
6572

6673
# For return.
6774
ret <- list(algorithm = algorithm[1],

0 commit comments

Comments
 (0)