(samples: number[], mean: number)
| 18 | } |
| 19 | |
| 20 | static calculateStandardDeviation(samples: number[], mean: number) { |
| 21 | let deviation = 0; |
| 22 | samples.forEach((x) => (deviation += Math.pow(x - mean, 2))); |
| 23 | deviation = deviation / samples.length; |
| 24 | deviation = Math.sqrt(deviation); |
| 25 | return deviation; |
| 26 | } |
| 27 | |
| 28 | static calculateRegressionSlope( |
| 29 | xValues: number[], |
no test coverage detected