Hi Thomas,
Thank you for the response. Oh yes, bessel’s correction uses (n - 1) instead of (n) for calculating the std. This would cause a ‘divide by 0’ case resulting in nan. I actually got caught up in searching for the source of this function. Thanks again.
Best regards,
Animesh