def compute(self, inputs, outputs):
    theta = inputs[self._cycle_names['theta']]
    psi = inputs[self._cycle_names['psi']]
    k = self.metadata['num_comp']
    x = self._inputs_to_vector(inputs)
    outputs['x_norm2'] = (0.5 * np.dot(x, x))
    outputs[self._cycle_names['theta_out']] = ((theta / 2) + ((((self._n * 2) * np.pi) - psi) / ((2 * k) - 2)))
def compute(self, inputs, outputs):
    theta = inputs[self._cycle_names['theta']]
    psi = inputs[self._cycle_names['psi']]
    k = self.metadata['num_comp']
    x = self._inputs_to_vector(inputs)
    outputs['x_norm2'] = (0.5 * np.dot(x, x))
    outputs[self._cycle_names['theta_out']] = ((theta / 2) + ((((self._n * 2) * np.pi) - psi) / ((2 * k) - 2)))