performance function

Performance calculation for soft classification