Learn R Programming

Clustering (version 1.7)

calculate_result: Method that returns the value or variable depending on where it is in the calculated metrics

Description

Method that returns the value or variable depending on where it is in the calculated metrics

Usage

calculate_result(
  algorith,
  distance,
  cluster,
  dataset,
  ranking,
  timeExternal,
  entropy,
  variation_information,
  precision,
  recall,
  fowlkes_mallows_index,
  f_measure,
  dunn,
  connectivity,
  silhouette,
  timeInternal,
  variables
)

Arguments

algorith

algorithm name

distance

name of the metric used to calculate the distance between points

cluster

number of clusters

dataset

name of dataset

ranking

position we want to obtain from the list of variables

timeExternal

array with the external validation calculation times of the clustering

entropy

array with the calculation of the entropy for each of the variables

variation_information

array with the calculation of the variation_information for each of the variables

precision

array with the calculation of the precision for each of the variables

recall

array with the calculation of the recall for each of the variables

fowlkes_mallows_index

array with the calculation of the fowlkes_mallows_index for each of the variables

f_measure

array with the calculation of the f_measure for each of the variables

dunn

array with the calculation of the dunn for each of the variables

connectivity

array with the calculation of the connectivity for each of the variables

silhouette

array with the calculation of the silhouette for each of the variables

timeInternal

array with the internal validation calculation times of the clustering

variables

true if we want to show the value of the metric calculation and false if we want to show the variable

Value

returns an array with the calculation of each metric based on the indicated position