ch_rfa_distseason {CSHShydRology} | R Documentation |
Calculates a matrix of distances between points in the seasonal space that characterizes timing and regularity. It is equivalent to Euclidean distance applied to regularity (radius) and timing (angle) separately.
ch_rfa_distseason(x, ...)
## S3 method for class 'numeric'
ch_rfa_distseason(x, a, w = 1/pi, ...)
## S3 method for class 'data.frame'
ch_rfa_distseason(x, w = 1/pi, ...)
## S3 method for class 'formula'
ch_rfa_distseason(form, x, w = 1/pi, ...)
x, a |
Coordinates in the seasonal space.
Can be a data.frame or vectors with radius |
... |
Other parameters. |
w |
Weight to favor angle over radius. By default it is 1/pi, which bring angle in the interval [0,1]. |
form |
Formula and dataset providing the coordinates of the
seasonal space. Must be of the form |
Returns a matrix of distances between points in the seasonal space that characterizes timing and regularity.
Martin Durocher
Durocher, M., Burn, D. H., & Ashkar, F. (2019). Comparison of estimation methods for a nonstationary index-flood model in flood frequency analysis using peaks over threshold. https://doi.org/10.31223/osf.io/rnepc
scoord <- data.frame(radius = runif(5),
angle = runif(5,0,2*pi))
ch_rfa_distseason(radius ~ angle , scoord)