def percent_beyond_1_std(x, e):
    dists_from_mu = x - weighted_average(x, e)
    return np.mean(dists_from_mu > weighted_std_dev(x, e))
Percentage of values more than 1 std. dev. from the weighted average.
dataset/ETHPy150Open cesium-ml/cesium/cesium/science_features/common_functions.py/percent_beyond_1_std