Separate leaf nodes from the heaps.
separate_data(heap_list, num_clusters)
(list): The nested list containing the heaps. Each entry in the list is a list maintained in max-heap structure.
(numeric): The number of clusters. Default: 2
A nested list where,
First entry is the list of heaps with leaves removed.
Second entry is the list of leaves.
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