Differences
This shows you the differences between two versions of the page.
— | ref:range_penalty [2023/12/14 16:03] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== RangePenalty ====== | ||
+ | Helper type to compute penalty if a value is outside a specific [[range|Range]]. | ||
+ | |||
+ | The penalty corresponds to '' | ||
+ | |||
+ | **Inherits from** [[range|scone:: | ||
+ | |||
+ | ==== Public Attributes ==== | ||
+ | ^ Parameter ^ Type ^ Description ^ | ||
+ | ^ abs_penalty | Real | Absolute penalty factor when value is out of range; default = 0. | | ||
+ | ^ squared_penalty | Real | Squared penalty factor when value out of range; default = 0. | | ||
+ | ^ mode | penalty_mode | Use the peek range violation instead of average range violation; default = 0. | | ||
+ | ^ min | T | Minimum value or lower bound of the range; default = -inf. | | ||
+ | ^ max | T | Maximum value or upper bound of the range; default = inf. | | ||
+ | |||
+ | < | ||