createsrch function

Create a grid of half-window widths to evaluate

Create a grid of half-window widths to evaluate

Create a grid of all unique combinations of half-window widths to evaluate. The result can be passed to winsrch_grid.

createsrch( mos = c(seq(0.5, 1, by = 0.25), 2, 10), yrs = c(seq(5, 15, by = 3), 50), flo = c(seq(0.5, 1, by = 0.1), 5) )

Arguments

  • mos: numeric vector of half-window widths for months, a value of one indicates twelve months
  • yrs: numeric vector of half-window widths for years, a value of one indicates one-year
  • flo: numeric vector of half-window widths for salinity or flow, a value of one indicates the full range of values (100 percent)

Returns

A matrix with number of rows equal to the product of the lengths of each input vector, where each row is a unique combination for the selected half-window widths.

Details

The weighting function uses a tri-cube weighting scheme such that weights diminish with distance from the center of the window. For example, a value of one for the month window does not mean that all months are weighted equally even though the window covers an entire calendar year.

Examples

createsrch() createsrch(1, 1, 1)

See Also

winsrch_grid

  • Maintainer: Marcus W. Beck
  • License: CC0
  • Last published: 2023-10-20

Useful links