Description Usage Arguments Value Examples
Runs fourier analysis on the input signal, to build baseline signal.
1 2 | prepareBaseline(x, year.start = NULL, year.end = NULL,
window.20 = FALSE)
|
x |
streamflow object, as output from the |
year.start |
Start of the year for estimating baseline, or |
year.end |
End of the year for estimating baseline, or |
window.20 |
If |
ssignal
object containing the baseline signal
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | # load sample data
data("sycamore")
x = sycamore
# get streamflow object for the sample data
x.streamflow = asStreamflow(x)
# baseline for single run for all the years in input signal
bl.singlerun.all = prepareBaseline(x.streamflow)
# baseline for singlerun between the given start and end years
bl.singlerun.filtered = prepareBaseline(x.streamflow, year.start = 1961,
year.end = 2000)
# baseline with windowinng and bootstrapping on all years in the input signal
bl.windowed.all = prepareBaseline(x.streamflow, window.20 = TRUE)
# baseline with windowing and bootstrapping on given start year
# with end year inferred from singal
bl.windowed.filtered = prepareBaseline(x.streamflow, year.start = 1961,
window.20 = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.