R/RcppExports.R

Defines functions runmean rcpp_hello_world

Documented in rcpp_hello_world runmean

# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393

#' @export
rcpp_hello_world <- function() {
    .Call(`_mbsi_rcpp_hello_world`)
}

#' @title Moving average.
#'
#' @description
#' \code{runmean} computes the moving average of a time series.
#'
#' @details
#' details.
#'
#' @param a Vector of values representing the original time series.
#' @param width The number of values to consider for the average.
#'
#' @return A moving average of the time series.
#'
#' @author Erick A. Chacon-Montalvan
#'
#' @examples
#'
#' x <- 1:10
#' runmean(x, width = 1)
#' runmean(x, width = 2)
#' runmean(x, width = 3)
#'
#' @importFrom Rcpp evalCpp
#'
#' @export
runmean <- function(a, width) {
    .Call(`_mbsi_runmean`, a, width)
}
ErickChacon/mbsi documentation built on Aug. 1, 2019, 4:47 p.m.