Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
31 | public function __construct(int $clustersNumber, int $initialization = self::INIT_KMEANS_PLUS_PLUS) |
||
32 | { |
||
33 | if ($clustersNumber <= 0) { |
||
34 | throw new InvalidArgumentException('Invalid clusters number'); |
||
35 | } |
||
36 | |||
37 | $this->clustersNumber = $clustersNumber; |
||
38 | $this->initialization = $initialization; |
||
39 | } |
||
63 |