Bounded
- pmrf.parameters.Bounded(lower: Any, upper: Any, *, value: Array | ndarray | bool | number | bool | int | float | complex | None = None, scale: float = 1.0, fixed: bool = False) Param
Create a parameter constrained within a specific interval.
Used as the main factory to define parameters for bounded optimization.
- Parameters:
lower (Any) – The lower bound of the interval.
upper (Any) – The upper bound of the interval.
value (Optional[ArrayLike], optional) – The initial value. If None, the midpoint of the bounds is used.
scale (float, optional) – The scaling factor to apply, by default 1.0.
fixed (bool, optional) – Whether to freeze the parameter, by default False.
- Returns:
The bounded parameter.
- Return type: