Possible Duplicate:
Computing per cent correctness from a bell curve
I've been trying to remember my High School teachings and are falling short.
I'm working on a project where I need to give a % of correctness for an integer (How close a given number is to the actual number within a 300% difference). For example if real number is 50, any number from -100 to 150 will return > 0% correctness.
The problem is that we need a curve (log, or bell curve, or something similar) to return a non-linear % correctness (i.e. 100 is 50% correct in linear terms, but we would want maybe 66%? ... and 125 is 33%?) and I dont have a formula to get this response.
Something like this (sorry, used mspaint quickly to try to explain)
Am I explaining this properly? Make sense? Any help? ;)