@@ -173,7 +173,7 @@ |
||
| 173 | 173 | * |
| 174 | 174 | * @param array $values The input values |
| 175 | 175 | * @param bool $sample Whether or not to compensate for small samples (n - 1), defaults to true |
| 176 | - * @return float|int The variance of values as an integer or float |
|
| 176 | + * @return double The variance of values as an integer or float |
|
| 177 | 177 | * @throws \Oefenweb\Statistics\StatisticsError |
| 178 | 178 | */ |
| 179 | 179 | public static function variance($values, $sample = true) |
@@ -162,7 +162,7 @@ |
||
| 162 | 162 | |
| 163 | 163 | if (!is_int($mean) && !is_float($mean)) |
| 164 | 164 | { |
| 165 | - throw new StatisticsError('This function requires the second arguement to be an integer or a float'); |
|
| 165 | + throw new StatisticsError('This function requires the second arguement to be an integer or a float'); |
|
| 166 | 166 | } |
| 167 | 167 | |
| 168 | 168 | return pow($value - $mean, 2); |