I have a parameter for a program that is a threshold (T). I need to document it, and what I want its meaning to be is this:
- If N >= T then Do Action
I don't want its meaning to be this:
- If N > T then Do Action
For ease of discussing this, let us say that N is "number of ghosts I've seen", and Action is "freak out". So my threshold might be 3, as in "If I see 3 or more ghosts, I'm going to freak out."
- See no ghosts — fine and dandy
- See 1 ghost — still ok, maybe it's a shadow
- See 2 ghosts — ok, maybe it's a shadow and a mirror
- See 3 ghosts — freak out; leave haunted house now, call Ghost Busters
- See 4 ghosts — still freaking out, etc.
But the best phrasing for a threshold description that I've seen so far is this:
- T = the number of ghosts that can be seen before a freak out occurs
Which implies that for T=3 I could see 3, and a freak out would not yet occur until a fourth ghost is seen.
How can I wrangle the threshold description to fix this off-by-one issue?