src/measure.py

Sun, 04 Oct 2026 16:30:24 -0500

author
Tuomo Valkonen <tuomov@iki.fi>
date
Sun, 04 Oct 2026 16:30:24 -0500
changeset 13
2cb7f20654e6
parent 1
a4137aedcb3a
permissions
-rw-r--r--

Add perturbation statistics experiment generation and processing scripts

import numpy as np


class Measure:
    def __init__(self, points, alphas):
        self.points = map(np.array, points)
        self.alphas = alphas

    def __iter__(self):
        return zip(self.points, self.alphas)

mercurial