Threshold independent

averaging over partitions

Threshold dependent

using optimal threshold from each partition