ebe_scripts/average_event_eccn_ep_corr_h5.py
def compute_mean_and_stat_error(data, nev):
    """compute the mean and statistical error for data"""
    data[:, 1:] /= nev
    data[:, 2::2] = sqrt(data[:, 2::2] - data[:, 1::2]**2.)/sqrt(nev)
    data[:, 1::2] = sqrt(data[:, 1::2])
    data[:, 2::2] = data[:, 2::2]/(2.*data[:, 1::2] + 1e-16)
compute the mean and statistical error for data
compute the mean and statistical error for data
compute the mean and statistical error for data
def compute_mean_and_stat_error(data, nev):
    data[:, 1:] /= nev
    data[:, 2::2] = sqrt(data[:, 2::2] - data[:, 1::2]**2.)/sqrt(nev)
    data[:, 1::2] = sqrt(data[:, 1::2])
    data[:, 2::2] = data[:, 2::2]/(2.*data[:, 1::2] + 1e-16)
def compute_mean_and_stat_error ( data , nev ) : data [ : , 1 : ] /= nev data [ : , 2 : : 2 ] = sqrt ( data [ : , 2 : : 2 ] - data [ : , 1 : : 2 ] ** 2. ) / sqrt ( nev ) data [ : , 1 : : 2 ] = sqrt ( data [ : , 1 : : 2 ] ) data [ : , 2 : : 2 ] = data [ : , 2 : : 2 ] / ( 2. * data [ : , 1 : : 2 ] + 1e-16 )
compute the mean and statistical error for data
compute the mean and statistical error for data
"""compute the mean and statistical error for data"""
data
nev