R/RcppExports.R

Defines functions build_heap max_heapify

Documented in build_heap max_heapify

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

#' max_heapify: Part of DCEM package.
#'
#' Implements the creation of max heap. Internally called by the \code{dcem_star_train}.
#'
#' @param data (NumericMatrix): The dataset provided by the user.
#' @param index (int): The index of the data point.
#' @param num_data (numeric): The total number of observations in the data.
#'
#' @return A NumericMatrix with the max heap property.
#'
#' @usage
#' max_heapify(data, index, num_data)
#'
#' @author Parichit Sharma \email{parishar@iu.edu}, Hasan Kurban, Mehmet Dalkilic
#'
max_heapify <- function(data, index, num_data) {
    .Call(`_DCEM_max_heapify`, data, index, num_data)
}

#' build_heap: Part of DCEM package.
#'
#' Implements the creation of heap. Internally called by the \code{dcem_star_train}.
#'
#' @param data (NumericMatrix): The dataset provided by the user.
#'
#' @return A NumericMatrix with the max heap property.
#'
#' @usage
#' build_heap(data)
#'
#' @author Parichit Sharma \email{parishar@iu.edu}, Hasan Kurban, Mehmet Dalkilic
#'
build_heap <- function(data) {
    .Call(`_DCEM_build_heap`, data)
}

Try the DCEM package in your browser

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

DCEM documentation built on Jan. 16, 2022, 1:07 a.m.