Lines Matching refs:points
35 protected $points; variable in KMeans\\Cluster
40 $this->points = new \SplObjectStorage();
45 $points = [];
46 foreach ($this->points as $point) {
47 $points[] = $point->toArray();
52 'points' => $points,
62 $this->points->attach($point);
68 $this->points->detach($point);
72 public function attachAll(\SplObjectStorage $points): void argument
74 $this->points->addAll($points);
77 public function detachAll(\SplObjectStorage $points): void argument
79 $this->points->removeAll($points);
84 if (!$count = count($this->points)) {
90 foreach ($this->points as $point) {
103 return $this->points;
108 return count($this->points);