| Total Complexity | 8 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class StandardDeviation |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @param float[]|int[] $numbers |
||
| 13 | */ |
||
| 14 | public static function population(array $numbers, bool $sample = true): float |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Sum of squares deviations |
||
| 40 | * ∑⟮xᵢ - μ⟯² |
||
| 41 | * |
||
| 42 | * @param float[]|int[] $numbers |
||
| 43 | */ |
||
| 44 | public static function sumOfSquares(array $numbers): float |
||
| 60 |