Override this method with a function that writes a value into `out`.

def compute(self, today, assets, out, *arrays):
        """
        Override this method with a function that writes a value into `out`.
        """
        raise NotImplementedError(
            "{name} must define a compute method".format(
                name=type(self).__name__
            )
        )