get_cell_id {HVT} | R 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, seed = 123)
Arguments
hvt.results |
List. A list of hvt.results obtained from the HVT function. |
seed |
Numeric. Random Seed |
Details
Cell ID
Value
Object containing Cell.ID mappings for the given hvt.results list.
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, seed = 123,
quant_method="kmeans",diagnose=TRUE)
plotHVT(hvt.results, line.width = c(0.8), color.vec = c('#141B41'),
maxDepth = 1)
get_cell_id (hvt.results)
[Package HVT version 23.11.1 Index]