Skip to contents

Root mean squared error of a fitted distribution

Usage

gof_rmse(x, d, plotting_positions = NULL)

Arguments

x

numeric vector of observations. Sorted internally, as the C# methods require.

d

a corehydro_dist object.

plotting_positions

optional numeric vector of exceedance probabilities. NULL (the default) uses Weibull positions, matching the C# overload.

Value

a single numeric RMSE.

Examples

x <- c(2.1, 3.4, 1.8, 4.9, 3.3, 2.7, 5.1, 3.9)
gof_rmse(x, distribution("Normal", c(3.4, 1.1)))
#> [1] 0.2432655