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

get_cell_idR Documentation

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.

Details

Cell ID

Author(s)

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

Examples

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)

muHVT documentation built on March 7, 2023, 6:38 p.m.