Searched refs:dimention (Results 1 – 4 of 4) sorted by relevance
31 protected $dimention; variable in KMeans\\Space35 public function __construct($dimention) argument37 if ($dimention < 1) {41 $this->dimention = $dimention;61 if (count($coordinates) != $this->dimention) {86 return $this->dimention;95 $min = $this->newPoint(array_fill(0, $this->dimention, null));96 $max = $this->newPoint(array_fill(0, $this->dimention, null));99 for ($n = 0; $n < $this->dimention; $n++) {115 $point = $this->newPoint(array_fill(0, $this->dimention, null));[all …]
88 $centroid = $this->space->newPoint(array_fill(0, $this->dimention, 0));91 for ($n = 0; $n < $this->dimention; $n++) {96 for ($n = 0; $n < $this->dimention; $n++) {
32 protected $dimention; variable in KMeans\\Point38 $this->dimention = $space->getDimention();57 for ($n = 0; $n < $this->dimention; $n++) {
63 **Note:** the example is given with points of a 2D space but it will work with any dimention >1.