This wrapper function derives the one-dimensional HHCF() for all columns or rows of a matrix

get_hhcf(
  mat,
  dr,
  margin = 1,
  detrend = TRUE,
  get_autocorr = FALSE,
  limlen = 30
)

Arguments

mat

a matrix

dr

numeric, spacing of the values along the axis

margin

indicate the direction, 1 = row, 2 = column, passed to apply's MARGIN

detrend

logical indicates if the data need to be detrended, default to TRUE

get_autocorr

logical, indicaites if the auto-correlation length is calculated

limlen

numeric the minimum length of data