hydromt.stats.skills.rmse#
- hydromt.stats.skills.rmse(sim, obs, dim='time')[source]#
Return the root mean squared error between two time series.
\[\begin{split}RMSE=\\sqrt{\\frac{1}{N}\\sum_{i=1}^{N}(e_{i}-s_{i})^2}\end{split}\]- Parameters:
sim (
xarray DataArray
) – simulations time seriesobs (
xarray DataArray
) – observations time seriesdim (
str
, optional) – name of time dimension in sim and obs (the default is ‘time’)
- Returns:
the root mean squared error
- Return type:
xarray DataArray