Sezan's thresholding
Optional
Tradeoff value between black and white
Sigma of normal distribution
Returns thresholded values.
Training data
Predicted values
Sezan's thresholding