A more general way to define this, would be to give two arrays of precomputed theta values for on and off measurements.
A more general way to define this, would be to give two arrays of precomputed theta values for on and off measurements.