def stats(state):
    if not state.count:
        return Stats(0, 0, 0, 0, 0, 0)

    mean = state.sum / state.count
    std = (float(state.sum2 - 2.0 * state.sum * mean + state.count * mean ** 2.0) / float(state.count)) ** 0.5
    return Stats(state.last, state.count,
                 mean, std, state.min, state.max)
Loads nodes from a yaml formatted file.
dataset/ETHPy150Open LabPy/lantz/lantz/stats.py/stats--crossover with--dataset/ETHPy150Open cloudtools/nymms/nymms/resources.py/load_nodes