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) |
||
30 | |||
31 | public function outcome(): float |
||
35 | |||
36 | public function impurity(): float |
||
40 | |||
41 | public function samplesCount(): int |
||
45 | } |
||
46 |