I'm wondering if there's a way to do this without storing the number array in memory. It would be a nice addition to create a streaming api. Something like:
I'm not even sure if that last one is even possible. Can you get the standard deviation without having the entire set of numbers? sum seems pretty straight forward but I'm not sure the other methods could work the same way.
I'm wondering if there's a way to do this without storing the number array in memory. It would be a nice addition to create a streaming api. Something like:
or as a pipe:
I'm not even sure if that last one is even possible. Can you get the standard deviation without having the entire set of numbers?
sum
seems pretty straight forward but I'm not sure the other methods could work the same way.