Function to calculate cyclic recruitment pattern given user-specified values of period and amplitude.

Share:

Description

Calculates cyclic pattern in recruitment deviations for a simulation. Ranges for Period and Amplitude are specified by user, and function produces cyclic pattern from within these ranges. Default is a sine wave.

Usage

1
SetRecruitCycle(x=1, Period, Amplitude, TotYears, Shape=c("sin", "shift"))

Arguments

x

Simulation number.

Period

A vector of length 2 specifying the minimum and maximum values for the period of the recruitment cycles. e.g., if Period = c(10,10), then recruitment cycle occurs every 10 years exactly.

Amplitude

A vector of length 2 specifying the minimum and maximum values for the amplitude of the recruitment cycles. e.g., if Amplitude = c(0,0.5), the average recruitment will increase (or decrease) by a factor between 0 and 0.5 each cycle.

TotYears

A numeric value specifying the total number of years (should be nyears + proyears).

Shape

Specifies whether cyclic recruitment pattern is sine wave (default) or a step-change (shift).

Author(s)

A. Hordyk

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.