new_cluster_metric function

Construct a new clustering metric function