Calculates detection ratio for one frequency