Merge components in the density of
mergingThreshold— Threshold for components merging
Threshold for components merging, specified as a real positive scalar. If the
Kullback-Leibler difference between two components is smaller than the value specified
mergingThreshold argument, then these two components will be
merged into one component. The merged weight of the new component is equal to the
summation of the weights of the two pre-merged components.