StdDev?

Hello everyone,
Is there a special cuda Standard Deviation function?
I need to calc the StdDev of an array on the device and im not sure how to go about that.

any help of pointer appreciated.

I don’t know that there is, but it isn’t a difficult calculation. You need to compute the sum and the sum of squares over the array, which is probably best done via a reduction algorithm like the ones contained in reduction example in the SDK. You can then compute the standard deviation from those results on the host.

You might have to pay attention to overflow problems if you have a big array of large numbers and are only planning to do the calculation in single precision.

There was a discussion on this a few days ago:
[url=“http://forums.nvidia.com/index.php?showtopic=95713”]http://forums.nvidia.com/index.php?showtopic=95713[/url]

Thanks for the info… ill look into it