Inner class Bucket for new instance management, this class has two buffers for recursively computing the coresets.
Return an array of weighted examples corresponding to the coreset extracted from the TreeCoreset data structure, in order to be used in k-means.
Return an array of weighted examples corresponding to the coreset extracted from the TreeCoreset data structure, in order to be used in k-means.
The following two cases can occur:
the coreset for the examples entered into the buckets.
Update the BucketManager, depending on the Example given
Update the BucketManager, depending on the Example given
the input Example
the updated BucketManger object
Data structure for managing all buckets for streamKM++ algorithm. The structure will extract maxsize coreset examples from n examples. When a new example occurs on the stream, the BucketManager is tasked with updating its corresponding buckets.