| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function __construct(int $clustersNumber, int $initialization = self::INIT_KMEANS_PLUS_PLUS) |
||
| 27 | { |
||
| 28 | if ($clustersNumber <= 0) { |
||
| 29 | throw new InvalidArgumentException('Invalid clusters number'); |
||
| 30 | } |
||
| 31 | |||
| 32 | $this->clustersNumber = $clustersNumber; |
||
| 33 | $this->initialization = $initialization; |
||
| 34 | } |
||
| 35 | |||
| 66 |