marge3d.utils

Functions

numerical_order(n_steps, err)

Compute numerical order from two vectors containing the error and the number of time-steps.

Module Contents

numerical_order(n_steps, err)[source]

Compute numerical order from two vectors containing the error and the number of time-steps.

Parameters:
  • n_steps (np.1darray or list) – Different number of steps to compute the error.

  • err (np.1darray) – Different error values associated to the number of steps.

Returns:

  • beta (float) – Order coefficient computed through linear regression.

  • rmse (float) – The root mean square error of the linear regression.