Method to calculate the connectivity.
connectivity_metric(distance, clusters_vector, dt, method)
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.Return a double with the result of the connectivity calculation.