Implements the node insertion into the heaps.
insert_nodes(heap_list, heap_assn, data_probs, leaves_ind, num_clusters)
(list): The nested list containing the heaps. Each entry in the list is a list maintained in max-heap structure.
(numeric): The vector representing the heap assignments.
(string): A vector containing the probability for data.
(numeric): A vector containing the indices of leaves in heap.
(numeric): The number of clusters. Default: 2
A nested list. Each entry in the list is a list maintained in the max-heap structure.
Parichit Sharma, Hasan Kurban, Mehmet Dalkilic DCEM: An R package for clustering big data via data-centric modification of Expectation Maximization, SoftwareX, 17, 100944 URL https://doi.org/10.1016/j.softx.2021.100944