Get Cluster Weights
Get the weights of the clusters in the DSC
get_weights(x, type=c("auto", "micro", "macro"), scale=NULL, ...)
- The DSC object the weights are being requested from.
- Return wrights of micro- or macro-clusters in x. Auto uses the class of x to decide.
- a range (from, to) to scale the weights. Returns by default the raw weights.
- Additional arguments are passed on.
The cluster weights are typically a function of how many points were assigned to each cluster.
A vector containing the weight of each micro-cluster or macro-cluster.
Internally the call is delegated to the appropriate
stream <- DSD_Gaussians(k=3, d=2) dstream <- DSC_DStream(gridsize=.1) update(dstream, stream, 500) dstream # getting the micro-cluster weights get_weights(dstream) # D-Stream also has macro-clusters get_weights(dstream, type="macro")
Looks like there are no examples yet.