def arith_mean(samples):
    """Computes the arithmetic mean of a set of samples.

    """
    accum = 0.0
    num_samples = float(len(samples))
    for sample in samples:
        accum += float(sample) / num_samples
    return accum