View source: R/VQ_codebookSplit.R
VQ_codebookSplit | R Documentation |
Vector Quantization by codebook split method
VQ_codebookSplit(dataset, quant.err = 0.5, epsilon = NULL)
dataset |
Matrix. A matrix of multivariate data. Each row corresponds to an observation, and each column corresponds to a variable. Missing values are not accepted. |
quant.err |
Numeric. The quantization error for the algorithm. |
epsilon |
Numeric. The value to offset the codebooks during the codebook split. Default is NULL, in which case the value is set to quant.err parameter. |
Performs Vector Quantization by codebook split method. Initially, the entire dataset is considered to be one cluster where the codebook is the mean of the cluster. The quantization criteria is checked and the codebook is split such that the new codebooks are (codebook+epsilon) and (codebook-epsilon). The observations are reassigned to these new codebooks based on the nearest neighbour condition and the means recomputed for the new clusters. This is done iteratively until all the clusters meet the quantization criteria.
clusters |
List. A list showing each ID assigned to a cluster. |
nodes.clust |
List. A list corresponding to nodes' details. |
idnodes |
List. A list of ID and segments similar to
|
error.quant |
List. A list of quantization error for all levels and nodes. |
plt.clust |
List. A list of logical values indicating if the quantization error was met. |
summary |
Summary. Output table with summary. |
Sangeet Moy Das <sangeet.das@mu-sigma.com>
hvtHmap
data("iris",package="datasets") iris <- iris[,1:2] vqOutput = VQ_codebookSplit(iris, quant.err = 0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.