Skip to content
Permalink
v1
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
@ def stdDev(a: Array[Double]): Double = {
val mean = a.sum / a.length
val squareErrors = a.map(x => x - mean).map(x => x * x)
math.sqrt(squareErrors.sum / a.length)
}