def update_param_vals(self, new_vals, incremental=False):
self._last_vals = self.param_vals.copy()<EOL>if incremental:<EOL><INDENT>self.param_vals += new_vals<EOL><DEDENT>else:<EOL><INDENT>self.param_vals = new_vals.copy()<EOL><DEDENT>self._fresh_JTJ = False<EOL>
Updates the current set of parameter values and previous values,
sets a flag to re-calculate J.

Parameters
----------
    new_vals : numpy.ndarray
        The new values to update to
    incremental : Bool, optional
        Set to True to make it an incremental update relative
        to the old parameters. Default is False