precision_metric function

Method to calculate the precision.

Method to calculate the precision.

precision_metric(true_positive, false_positive)

Arguments

  • true_positive: Array with matching elements of B is in the same cluster.
  • false_positive: Array with non matching element of B is in the same cluster.

Returns

Returns a double with the precision calculation.