Skip to main content
. 2024 Apr 14;26(4):335. doi: 10.3390/e26040335
Algorithm 2 Data preprocessing to isolate and transform data exhibiting extreme behavior. ri represents the radial component, and vi the angular component. The declustering portion is relevant for data correlated in time.
  • for  =1,,d  do

  •     Set bt,=F^111t.

  •     With x>bt,, fit σ, ξ via MLE according to generalized Pareto likelihood.

  • end for

  • for  i=1,,n  do

  •     Define zi,=1+ξxi,bt,σ+1/ξ;      then ri=zi, vi=zizi

  • end for

  • Subset r,v such that ri1

  • if declustering then

  •     for i=1,,n do

  •         If ri1 and ri11, drop the lesser (and associated vi) from dataset.

  •     end for

  • end if