Low Spectral Anomaly Frequency (LSAF)
Compute Low Spectral Anomaly Frequency (LSAF) from the given residual values.
getLSAF(resid, years, for.year = NULL)
resid
: A vector of residual values generated with respect to the baseline signalyears
: A vector of years corrosponding to the residual valuesfor.year
: (optional) Calculate LSAF values only for the given year in this argument. If argument is omitted, LSAF values for all years are calculated.Data frame containing two Columns:
year | First column, represents year |
LSAF | Second column, represents LSAF values |
# load sample data data("sycamore") x = sycamore # get streamflow object for the sample data x.streamflow = asStreamflow(x) # prepare baseline signal x.bl = prepareBaseline(x.streamflow) # LSAF lsaf = getLSAF(x.bl$resid.sig, x.streamflow$data$year)
Useful links