Cumulative standard deviation: Difference between revisions
m
→{{header|Haskell}}: (spacing)
(→{{header|AppleScript}}: Slight reorganisation, updated primitives) |
m (→{{header|Haskell}}: (spacing)) |
||
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
|