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