nectarchain.trr_test_suite.utils.err_sum#
- err_sum(err_a, err_b, cov_a_b=0)[source]#
Computes the square root of the sum of the squares of
err_aanderr_b, plus twice the covariancecov_a_b.This function is used to calculate the combined error of two values, taking into account their individual errors and the covariance between them.
- Args:
err_a (float): The error of the first value. err_b (float): The error of the second value. cov_a_b (float, optional): The covariance between the two values. Defaults to 0.
- Returns:
float: The combined error.