Custom PQ comparison with 0.001 threshold