
Helper function to compute weighted mean and standard deviation
weighted_mean_sd.RdHelper function to compute weighted mean and standard deviation. Deals gracefully whether x is sparse matrix or not.

weighted_mean_sd.RdHelper function to compute weighted mean and standard deviation. Deals gracefully whether x is sparse matrix or not.