Skip to content

Commit

Permalink
update doc and roxygen
Browse files Browse the repository at this point in the history
  • Loading branch information
lschneiderbauer committed Jun 1, 2024
1 parent 818b476 commit fa38a37
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 25 deletions.
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ SystemRequirements:
openmp (>= 15.0.0)
Config/testthat/edition: 3
URL: https://lschneiderbauer.github.io/fcwtr/
Roxygen: list(markdown = TRUE)
10 changes: 5 additions & 5 deletions R/fcwt.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Performs a fast continuous wavelet transform.
#' Fast continuous wavelet transform
#'
#' The core function of this package making use of the fcwt library. It processes
#' an input signal in form of a real valued numeric vector interpreted as an
Expand All @@ -17,12 +17,12 @@
#' Sampling rate of input time series in physical units.
#'
#' @param freq_begin
#' Sets the minimal frequency (\code{> 0}!), in same units as \code{sample_freq},
#' Sets the minimal frequency (`> 0`), in same units as `sample_freq`,
#' that should be contained in the output.
#'
#' @param freq_end
#' Sets the maximal frequency (\code{> freq_begin}!), in same units as
#' \code{sample_freq}, that should be contained in the output.
#' Sets the maximal frequency (`> freq_begin`), in same units as
#' `sample_freq`, that should be contained in the output.
#'
#' @param n_freqs
#' Number of frequency bins generated by the CWT. The frequencies
Expand Down Expand Up @@ -51,7 +51,7 @@
#' Number of threads used by the computation, if applicable.
#'
#' @return
#' A numeric real-valued matrix with \code{dim = c(length(signal), n_freqs)}.
#' A numeric real-valued matrix with `dim = c(length(signal), n_freqs)`.
#'
#' @examples
#' ts_sin_440 <- sin((1:44100) * 2 * pi * 440 / 44100)
Expand Down
9 changes: 5 additions & 4 deletions R/fcwt_batch.R
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#' FCWT on long sequences
#' Automatic batching of fcwt calculations on long sequences
#'
#' Performs a fast continuous wavelet transform on long sequences. It should
#' not be used on short sequences, since boundary artefacts are discarded, and
#' those potentially dominate for short sequences.
#' not be used on short sequences since boundary artefacts are discarded (and
#' those potentially dominate for short sequences.)
#'
#' @details
#' In case of input sequences that exceed the a certain size, the outputl
#' In case of input sequences that exceed the a certain size, the output
#' sequence will not fit into the local memory and the fcwt cannot be
#' performed in one run.
#' For instance, in case of processing a song of 10 minutes length (assuming
Expand Down Expand Up @@ -37,6 +37,7 @@
#' Can not be higher than the time resolution of the input signal.
#'
#' @inheritParams fcwt
#' @seealso fcwt
#' @importFrom utils txtProgressBar setTxtProgressBar
#' @export
#' @examples
Expand Down
12 changes: 6 additions & 6 deletions man/fcwt.Rd

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

23 changes: 13 additions & 10 deletions man/fcwt_batch.Rd

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

0 comments on commit fa38a37

Please sign in to comment.