humann/quantify/modules.py
def harmonic_mean(values):
    """
    Return the harmonic mean for the values
    """
    
    # If there are no values or if one of the values is zero, then the harmonic mean is zero
    mean=0
    if values and min(values) > 0:
        reciprocal_sum=sum((1.0/v) for v in values)
        mean=len(values)/reciprocal_sum
    
    return mean

    Return the harmonic mean for the values
    
Return the harmonic mean for the values
Return the harmonic mean for the values
def harmonic_mean(values):
    mean=0
    if values and min(values) > 0:
        reciprocal_sum=sum((1.0/v) for v in values)
        mean=len(values)/reciprocal_sum
    return mean
def harmonic_mean ( values ) : mean = 0 if values and min ( values ) > 0 : reciprocal_sum = sum ( ( 1.0 / v ) for v in values ) mean = len ( values ) / reciprocal_sum return mean
Return the harmonic mean for the values
Return the harmonic mean for the values
"""
    Return the harmonic mean for the values
    """ # If there are no values or if one of the values is zero, then the harmonic mean is zero
values