get_weights

0th

Percentile

Get Cluster Weights

Get the weights of the clusters in the DSC

Usage
get_weights(x, type=c("auto", "micro", "macro"), scale=NULL, ...)
Arguments
x
The DSC object the weights are being requested from.
type
Return wrights of micro- or macro-clusters in x. Auto uses the class of x to decide.
scale
a range (from, to) to scale the weights. Returns by default the raw weights.
...
Additional arguments are passed on.
Details

The cluster weights are typically a function of how many points were assigned to each cluster.

Value

A vector containing the weight of each micro-cluster or macro-cluster. Internally the call is delegated to the appropriate get_microweights() or get_macroweights() method.

See Also

DSC

Aliases
  • get_weights
Examples
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")
Documentation reproduced from package stream, version 1.2-3, License: GPL-3

Community examples

Looks like there are no examples yet.