Skip to content

Commit

Permalink
Fix generate seasonal documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
SofiaOtero committed Jan 31, 2025
1 parent 3757d93 commit 9e7d48d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions R/generate_seasonal_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#' @param years An integer specifying the number of years of data to simulate.
#' @param start_date A date representing the start date of the simulated data.
#' @param amplitude A number specifying the amplitude of the seasonal wave.
#' The output will fluctuate within the range `[mean - amplitude, mean + amplitude]`.
#' @param mean A number specifying the mean of the seasonal wave. Must be greater than or equal to the amplitude.
#' @param phase A numeric value (in radians) representing the horizontal shift
#' of the sine wave, hence the phase shift of the seasonal wave. The phase must be between zero and 2*pi.
Expand Down
3 changes: 2 additions & 1 deletion man/generate_seasonal_data.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vignettes/generate_seasonal_wave.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ $$
Where:

- $t$: The time variable (e.g., weeks or months, represented on the x-axis).
- $\text{amplitude}$: Controls the height of the wave; the output oscillates between $\text{0 to 2 * amplitude}$.
- $\text{amplitude}$: Controls the height of the oscillations; the output varies between **\( \text{mean} \pm \text{amplitude} \)**.
- $\text{mean}$: The baseline value around which the seasonal wave oscillates. Must be greater than or equal to the amplitude.
- $\text{period}$: Defines the cycle length (e.g., 52 weeks for yearly seasonality) (is calculated based on `time_interval`).
- $\text{phase}$: Adjusts the horizontal position of the wave on the x-axis.
Expand Down

0 comments on commit 9e7d48d

Please sign in to comment.