This function returns a deviate vector with the right properties to test the presence of a deviate to flatness with a sine trend in a rank histogram, as introduced in (Zamo et al. 2021) or (Zamo, 2016).
deviate_wave(k)an integer. The number of components.
An rkhist object.
Although the deviate vector is not a rank histogram, this function returns
an rkhist object for the sake of simplicity. This allows for instance
to plot the vector.
Jolliffe, Ian T., and Cristina Primo. "Evaluating rank histograms using decompositions of the chi-square test statistic." Monthly Weather Review 136.6 (2008): 2133-2139. doi:https://doi.org/10.1175/2007MWR2219.1
Zamo, Micha<U+00EB>l, Liliane Bel, and Olivier Mestre. "Sequential aggregation of probabilistic forecasts<U+2014>application to wind speed ensemble forecasts." Journal of the Royal Statistical Society: Series C (Applied Statistics) 70.1 (2021): 202-225. doi:https://doi.org/10.1111/rssc.12455
Zamo, Micha<U+00EB>l. Statistical Post-processing of Deterministic and Ensemble Wind Speed Forecasts on a Grid. Diss. Universit<U+00E9> Paris-Saclay (ComUE), 2016.