Create the heap from the data frame. This function is for internal use and is called
by the dcem_star_cluster_uv (univariate data) and
dcem_star_cluster_mv (multivariate data).
Usage
build_heap(data)
Arguments
data
(dataframe): The dataframe containing the key, value pairs.
Value
data frame: The dataframe containing the heap.
References
Using data to build a better EM: EM* for big data.
Hasan Kurban, Mark Jenne, Mehmet M. Dalkilic
(2016) <doi:https://doi.org/10.1007/s41060-017-0062-1>.
# NOT RUN {# Create a sample data frameheap <- data.frame(keys=c(0,3,4), vals=c(7,7,4))
# Build the heap from the data frame.heap <- build_heap(heap)
# }