Cumulative standard deviation: Difference between revisions

m
(→‎{{header|AppleScript}}: Slight reorganisation, updated primitives)
Line 1,678:
 
<lang Haskell>-- stdDevInc :: Accumulator -> (Value, Index) -> Updated Accumulator
 
stdDevInc :: (Float, Float, [Float]) -> (Float, Int) -> (Float, Float, [Float])
stdDevInc (sum, sqrSum, xs) (x, i) = (_sum, _sqrSum, _xs) where
9,655

edits