HeFTy goodness-of-fit (GOF) values range from 0 (worst fit) to 1 (best fit). Because, GOF values greater than 0.5 are considered equally good ("acceptable"), this function rescales the GOF values to weighting values.
See also
plot_path_density_filled_weighted() for calculating weighted density of t-T paths.
Examples
gof_values <- c(0.1, 0.3, 0.5, 0.7, 0.9)
gof_weighting(gof_values)
#> [1] 0.2 0.6 1.0 1.0 1.0