Creates a scoring rule object for indicators where values near an optimum are best. The rule will normalize values based on distance from the optimum, with scores decreasing linearly or quadratically as values move away from the optimum.
Arguments
- optimal
The optimal value for the indicator
- tolerance
The distance from optimal where score reaches 0. Must be a positive number.
- penalty
Type of penalty function: "linear" (default) or "quadratic". Linear penalty decreases score proportionally to distance, while quadratic penalty is more forgiving near the optimum.
