[UDRG] Normalize rules evaluation result score
Normalize Custom Metric evaluation result x using the thresholds and weights provided by the end user. The following steps should be followed:
- Find the threshold interval [a, b] where the result value is included.
- Normalize the value according to the following formula:
[a, b]: original interval (thresholds)
[c, d]: target interval (weights)
x: evaluation result
y: normalized result
y = c + ((x - a )*(d -c) / (b -a ))
Edited by Idoia Murua Belakortu