connectivity_metric function

Method to calculate the connectivity.

Method to calculate the connectivity.

connectivity_metric(distance, clusters_vector, dt, method)

Arguments

  • distance: Dissimilarity matrix.
  • clusters_vector: Array that containe tha data grouped in cluster.
  • dt: Dataframe with original data.
  • method: Indicates the method for calculating distance between points.

Returns

Return a double with the result of the connectivity calculation.