Skip to content
New issue

Have a question about this project?Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of serviceand privacy statement.We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Clustering: add setter for clusterDistancePoints in the GMUNonHierarchicalDistanceBasedAlgorithm.m #453

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
add getter and setter for clusterDistancePoints in the GMUNonHierarch…
…icalDistanceBasedAlgorithm.m
  • Loading branch information
vorokami committed Aug 28, 2023
commit908e6b30a7a4523d379835b10bd90f80f2610ae4
5 changes: 5 additions & 0 deletions src/Clustering/Algo/GMUClusterAlgorithm.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ NS_ASSUME_NONNULL_BEGIN

- (void)addItems:(NSArray<id<GMUClusterItem>> *)items;

/**
* setter.
*/
- (void) setClusterDistancePoints:(NSUInteger)newValue;

/**
* Removes an item.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,14 @@ - (instancetype)initWithClusterDistancePoints:(NSUInteger)clusterDistancePoints
return self;
}

- (NSUInteger)clusterDistancePoints {
return _clusterDistancePoints;
}

- (void)setClusterDistancePoints:(NSUInteger)newValue {
_clusterDistancePoints = newValue;
}

- (void)addItems:(NSArray<id<GMUClusterItem>> *)items {
[_items addObjectsFromArray:items];
for (id<GMUClusterItem> item in items) {
Expand Down