def _smoothing(precision_fractions, c=<NUM_LIT:1>):
ratios = [<NUM_LIT:0>] * len(precision_fractions)<EOL>for i, precision_fraction in enumerate(precision_fractions):<EOL><INDENT>if precision_fraction[<NUM_LIT:1>] > <NUM_LIT:0>:<EOL><INDENT>ratios[i] = float(precision_fraction[<NUM_LIT:0>] + c) / (precision_fraction[<NUM_LIT:1>] + c)<EOL><DEDENT>else:<EOL><INDENT>ratios[i] = <NUM_LIT:0.0><EOL><DEDENT><DEDENT>return ratios<EOL>
Compute the smoothed precision for all the orders.

    Parameters
    ----------
    precision_fractions: list(tuple)
        Contain a list of (precision_numerator, precision_denominator) pairs
    c: int, default 1
        Smoothing constant to use

    Returns
    -------
    ratios: list of floats
        Contain the smoothed precision_fractions.