src/measure.py

Sat, 01 Aug 2026 13:27:15 -0500

author
Tuomo Valkonen <tuomov@iki.fi>
date
Sat, 01 Aug 2026 13:27:15 -0500
changeset 14
0fffcda184a2
parent 1
a4137aedcb3a
permissions
-rw-r--r--

LOCAL_DEPS_HACK

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