nectarchain.trr_test_suite.utils.third_degree_fit_function#

third_degree_fit_function(x, a, b, c, d)[source]#

Computes a function of the form (a*x + b)/(1+c) + d.

Args:

x (float): The input value. a (float): The coefficient of the linear term. b (float): The constant term in the numerator. c (float): The coefficient of the denominator. d (float): The constant term added to the result.

Returns:

float: The result of the function.