R/params.R
rescomp_param_sine.Rd
Produces an object suitable to include in a rescomp_param_list
.
Triangle and square waves are phase-shifted to be similiar in shape to a sine wave with the same period and offset, such that the peaks and troughs occur in the same places.
rescomp_param_sine(period = 1, min = 0, max = 1, offset = 0)
rescomp_param_triangle(period = 1, min = 0, max = 1, offset = 0)
rescomp_param_square(period = 1, min = 0, max = 1, offset = 0)
The period of the wave.
The minimum value of the parameter; the mean minus the amplitude.
The maximum value of the parameter; the mean plus the amplitude.
The phase shift of the wave. For a sine or triangle wave the time at which its value is equal to the mean. For a square wave, the time at which it increases to the maximum value.
A numeric vector of values of the parameter to use in plot_funcresp()
.
S3 object of class rescomp_param
.
# TODO