diff --git a/src/Clustering/Algo/GMUClusterAlgorithm.h b/src/Clustering/Algo/GMUClusterAlgorithm.h index e6637f52..445e3454 100644 --- a/src/Clustering/Algo/GMUClusterAlgorithm.h +++ b/src/Clustering/Algo/GMUClusterAlgorithm.h @@ -27,6 +27,11 @@ NS_ASSUME_NONNULL_BEGIN - (void)addItems:(NSArray> *)items; +/** + * Set the distance for marker clustering for the NonHierarchicalDistanceBasedAlgorithm. + */ +- (void) setClusterDistancePoints:(NSUInteger)newValue; + /** * Removes an item. */ diff --git a/src/Clustering/Algo/GMUNonHierarchicalDistanceBasedAlgorithm.m b/src/Clustering/Algo/GMUNonHierarchicalDistanceBasedAlgorithm.m index c227fea3..32a61e15 100644 --- a/src/Clustering/Algo/GMUNonHierarchicalDistanceBasedAlgorithm.m +++ b/src/Clustering/Algo/GMUNonHierarchicalDistanceBasedAlgorithm.m @@ -97,6 +97,10 @@ - (instancetype)initWithClusterDistancePoints:(NSUInteger)clusterDistancePoints return self; } +- (void)setClusterDistancePoints:(NSUInteger)newValue { + _clusterDistancePoints = newValue; +} + - (void)addItems:(NSArray> *)items { [_items addObjectsFromArray:items]; for (id item in items) {