Michael Trott suggests the following variant, as it can be used to handle the issue of ConditionalExpression
swallowing Equal
.
threshold = FindRoot[Integrate[
fSum[y] /. Catenate[{setb, setp}], {y, detThresh, \[Infinity]},
Assumptions -> Element[detThresh, Reals]] == pfa, {detThresh, initThresh}, Evaluated->False]
It seems that this Evaluated
option is not documented though.