| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | public function __construct(int $clustersNumber, int $initialization = self::INIT_KMEANS_PLUS_PLUS) |
||
| 32 | { |
||
| 33 | if ($clustersNumber <= 0) { |
||
| 34 | throw InvalidArgumentException::invalidClustersNumber(); |
||
| 35 | } |
||
| 36 | |||
| 37 | $this->clustersNumber = $clustersNumber; |
||
| 38 | $this->initialization = $initialization; |
||
| 39 | } |
||
| 40 | |||
| 61 |