duration

Methods

Method Reference: duration.rmse

duration: E = rmse (F, A)
duration: E = rmse (F, A, dim)
duration: E = rmse (F, A, vecdim)
duration: E = rmse (F, A, 'all')
duration: E = rmse (…, nanflag)
duration: E = rmse (…, 'Weights', W)

Compute the root mean squared error between duration arrays.

This method overloads the core rmse function for duration arrays. The functionality is identical to core rmse function. Type help rmse for more information.

Source Code: duration

Example: 1

rmse returns the root-mean-square error between two duration arrays — a duration measuring their typical difference.

 predicted = hours ([1, 2, 3])
predicted =
  1x3 duration array

    1 hr    2 hr    3 hr
 actual = hours ([1, 2, 5])
actual =
  1x3 duration array

    1 hr    2 hr    5 hr
 rmse (predicted, actual)
ans =
  duration

   1.1547 hr