R/RcppExports.R

Defines functions .bfast_cpp_closestfrom

Documented in .bfast_cpp_closestfrom

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

#' For all elements of a vector a, find the closest elements in a vector B and returns resulting indexes
#' @param a numeric vector, ordered
#' @param b numeric vector, ordered
#' @param twosided logical value, if false, indexes will always point to elements in b that are less than or equal to elements in a but not greater than.
#' @return integer vector of the same size as a with elements represnting indexes pointing to closest values in b
.bfast_cpp_closestfrom <- function(a, b, twosided) {
    .Call('_bfast_bfast_cpp_closestfrom', PACKAGE = 'bfast', a, b, twosided)
}

Try the bfast package in your browser

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

bfast documentation built on May 10, 2021, 5:08 p.m.