max_heapify: max_heapify: Part of DCEM package.
Description
Implements the creation of max heap. Internally called by the dcem_star_train
.
Usage
max_heapify(data, index, num_data)
Arguments
data
(NumericMatrix): The dataset provided by the user.
index
(int): The index of the data point.
num_data
(numeric): The total number of observations in the data.
Value
A NumericMatrix with the max heap property.