R/KmedoidsResult.R

#' An S4 class to represent the result of kmedoids clustering 
#' 
#' @slot cost The cost value of kmedoids clustering
#' @slot medoids The medoids of kmedoids clustering
#' @slot assignment The assignment of which cluster each observation belongs to of kmedoids clustering
setClass (
  # Class name
  "KmedoidsResult",
  
  # Defining slot type
  representation (
    cost = "numeric",
    medoids = "array",
    assignment = "array"
  ),
  
  # Initializing slots
  prototype = list(
    cost = as.numeric(0)
  )
)

Try the fastkmedoids package in your browser

Any scripts or data that you put into this service are public.

fastkmedoids documentation built on Jan. 22, 2021, 1:06 a.m.