segmentTS.3eqsignal: Equalize Signals

Description Usage Arguments Value

Description

This function takes in the time-series data for observed and simulated from segmentTS.2catsignal. Attempts to equalize the number of peaks and troughs in simulated time-series, to match number of signals in the observed time-series. This fn defines the boundary positions for the segments in the full time-series. Optional arguments are provide for manual removal of peaks and/or troughs in the observational or simulated signal. Manual removal by index should be specified after visual inspection of the automated identification of segments in the time-series. If the automated procedure identifies false minimums, maximums, or non-focal signals, these can be removed after visual inspection by specifying the peak or trough index number, counting from the left-most peak/trough (1) to the right-most peak/trough (n) obseverved in graphical outputs.

Usage

1
2
3
segmentTS.3eqsignal(obs.evnt, sim.evnt, val.mindays = 250,
  rm.obs.peak = NULL, rm.obs.trough = NULL, rm.sim.peak = NULL,
  rm.sim.trough = NULL)

Arguments

obs.evnt

data.frame object with variables derived from segmentTS.2catsignal

sim.evnt

data.frame, variables as in obs.evnt, but for simulated data.

val.mindays

integer number of timesteps (days) between peaks troughs; helps to remove false peaks and troughs.

rm.obs.peak

integer index of peak to remove from the observational time-series. Pass multiple indices in a numeric vector.

rm.obs.trough

integer index of trough to remove from the observational time-series. Pass multiple indices in a numeric vector.

rm.sim.peak

integer index of peak to remove from the simulated time-series. Pass multiple indices in a numeric vector.

rm.sim.trough

integer index of trough to remove from the simulated time-series. Pass multiple indices in a numeric vector.

Value

list object with two data.frames with number of peaks,troughs equalized. The data frame only contains the vector positions of the peaks and troughs.


lcalle/segmentTS documentation built on May 7, 2019, 10:52 p.m.