From 95fc139170aa76f44b0ef3b554eefb31f0812a8c Mon Sep 17 00:00:00 2001 From: Mustafa Karabulut Date: Mon, 23 Jan 2017 10:24:50 +0200 Subject: [PATCH] Update Cluster.php (#32) --- src/Phpml/Clustering/KMeans/Cluster.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Phpml/Clustering/KMeans/Cluster.php b/src/Phpml/Clustering/KMeans/Cluster.php index 28fa8af..5436ee9 100644 --- a/src/Phpml/Clustering/KMeans/Cluster.php +++ b/src/Phpml/Clustering/KMeans/Cluster.php @@ -136,4 +136,12 @@ class Cluster extends Point implements IteratorAggregate, Countable { return count($this->points); } + + /** + * @param array $newCoordinates + */ + public function setCoordinates(array $newCoordinates) + { + $this->coordinates = $newCoordinates; + } }