Techniques for determining threshold