private void acceptNewState ( double fx_candidate ) { DMatrixRMaj tmp = x ; x = x_next ; x_next = tmp ; fx = fx_candidate ; mode = Mode . COMPUTE_DERIVATIVES ; }
The new state has been accepted . Switch the internal state over to this