Learn R Programming

muHVT (version 3.0.0)

get_cell_id: Function to generate cell ID based on 1D sammons projection

Description

To generate cell id for the multivariate data, the data is being projected from n-dimensions to 1-dimension and the cell id is being assigned by ordering these values and finding the corresponding indexes. The output CellID gets appended to the HVT model.

Usage

get_cell_id(hvt.results)

Arguments

hvt.results

List. A list of hvt.results obtained from the HVT function.

Author

Shubhra Prakash <shubhra.prakash@mu-sigma.com>

Details

Cell ID

Examples

Run this code
data(USArrests)
hvt.results <- list()
hvt.results <- HVT(USArrests, n_cells = 15, depth = 1, quant.err = 0.2, 
                   distance_metric = "L1_Norm", error_metric = "mean",
                   projection.scale = 10, normalize = TRUE,
                   quant_method="kmeans",diagnose=TRUE)
plotHVT(hvt.results, line.width = c(0.8), color.vec = c('#141B41'), 
        maxDepth = 1)
get_cell_id (hvt.results)

Run the code above in your browser using DataLab