R/RcppExports.R

Defines functions slidingWindow crossAlert helloStream commonSubexpressions

Documented in commonSubexpressions crossAlert helloStream slidingWindow

# This file was generated by Rcpp::compileAttributes
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393

#' This is an example function illustrating Streamulus
#'
#' @title Common 'greeting' carried across several expressions
#' @return An unconditional TRUE value
#' @author Dirk Eddelbuettel
#' @examples commonSubexpressions()
commonSubexpressions <- function() {
    .Call('RcppStreams_commonSubexpressions', PACKAGE = 'RcppStreams')
}

#' This is an example function illustrating Streamulus
#'
#' @title Print some hello messages
#' @return An unconditional TRUE value
#' @author Dirk Eddelbuettel
#' @examples helloStream()
helloStream <- function() {
    .Call('RcppStreams_helloStream', PACKAGE = 'RcppStreams')
}

#' This is an example function illustrating Streamulus
#'
#' @title Alert for cross of two moving averages
#' @param f1 Parameter for the slower exponential moving average
#' @param f2 Parameter for the faster exponential moving average
#' @return An unconditional TRUE value
#' @author Dirk Eddelbuettel
#' @examples crossAlert(10,20)
crossAlert <- function(f1, f2) {
    .Call('RcppStreams_crossAlert', PACKAGE = 'RcppStreams', f1, f2)
}

#' This is an example function illustrating Streamulus
#'
#' @title Sliding window function example
#' @return An unconditional TRUE value
#' @author Dirk Eddelbuettel
#' @examples slidingWindow()
slidingWindow <- function() {
    .Call('RcppStreams_slidingWindow', PACKAGE = 'RcppStreams')
}

Try the RcppStreams package in your browser

Any scripts or data that you put into this service are public.

RcppStreams documentation built on May 30, 2017, 3:14 a.m.