Lines Matching full:space
31 protected $space; variable in KMeans\\Point
35 public function __construct(Space $space, array $coordinates) argument
37 $this->space = $space;
38 $this->dimention = $space->getDimention();
46 'data' => isset($this->space[$this]) ? $this->space[$this] : null,
52 if ($point->space !== $this->space) {
53 throw new \LogicException("can only calculate distances from points in the same space");
81 public function belongsTo(Space $space): bool argument
83 return $this->space === $space;
86 public function getSpace(): Space
88 return $this->space;