nectarchain.trr_test_suite.utils.err_ratio#

err_ratio(nominator, denominator, err_norm, err_denom, cov_nom_den=0)[source]#

Computes the error ratio for a given nominator, denominator, and their respective errors.

Args:

nominator (float): The nominator value. denominator (float): The denominator value. err_norm (float): The error of the nominator. err_denom (float): The error of the denominator. cov_nom_den (float, optional): The covariance between the nominator and denominator. Defaults to 0.

Returns:

float: The error ratio.