def weighted_std_dev(x, e):
    return np.sqrt(np.average((x - weighted_average(x, e))**2,
                              weights=1. / (e**2)))
Standard deviation of observed values, weighted by measurement errors.
dataset/ETHPy150Open cesium-ml/cesium/cesium/science_features/common_functions.py/weighted_std_dev