| Total Complexity | 4 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class AverageNode extends BinaryNode implements PurityNode, LeafNode |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var float |
||
| 11 | */ |
||
| 12 | private $outcome; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var float |
||
| 16 | */ |
||
| 17 | private $impurity; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var int |
||
| 21 | */ |
||
| 22 | private $samplesCount; |
||
| 23 | |||
| 24 | public function __construct(float $outcome, float $impurity, int $samplesCount) |
||
| 29 | } |
||
| 30 | |||
| 31 | public function outcome(): float |
||
| 34 | } |
||
| 35 | |||
| 36 | public function impurity(): float |
||
| 39 | } |
||
| 40 | |||
| 41 | public function samplesCount(): int |
||
| 46 |