hyperbolicPenalty
R2026bHyperbolic penalty value for a point with respect to a bounded region
Description
calculates the nonnegative (hyperbolic) penalty vector p = hyperbolicPenalty(x,xmin,xmax)p for the point
x with respect to the region bounded by xmin and
xmax. p has the same dimension as
x. This syntax uses the default values of 1 and
0.1 for the lambda and tau
parameters of the hyperbolic function, respectively.
Examples
Input Arguments
Output Arguments
Extended Capabilities
Version History
Introduced in R2021b
![Hyperbolic penalty values plotted over the interval from -5 to 5, showing near-zero penalty within the bounded region [-2, 2] and linearly increasing penalty outside](../../examples/rl/CalculateHyperbolicPenaltyForAPointExample_01.png)