@@ -136,9 +136,9 @@ |
||
| 136 | 136 | $N_K_N = $N->multiply($K_N); |
| 137 | 137 | |
| 138 | 138 | return $K->subtract($N_K) |
| 139 | - ->subtract($K_N) |
|
| 140 | - ->add($N_K_N) |
|
| 141 | - ->toArray(); |
|
| 139 | + ->subtract($K_N) |
|
| 140 | + ->add($N_K_N) |
|
| 141 | + ->toArray(); |
|
| 142 | 142 | } |
| 143 | 143 | |
| 144 | 144 | /** |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | */ |
| 54 | 54 | public function preprocess(array $samples) |
| 55 | 55 | { |
| 56 | - $this->fit($samples); |
|
| 56 | + $this->fit($samples); |
|
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | public function fit(array $samples): void |