baybe.targets.transforms.bell_transform¶
- baybe.targets.transforms.bell_transform(arr: _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes], lower: float, upper: float)[source]¶
Map values to the interval
[0, 1]
in a “Gaussian bell” fashion.The shape of the function is “Gaussian bell curve”, specified through the boundary values of the sigma interval. Reaches the maximum value of 1 at the interval center.
- Parameters:
arr (
Union
[_SupportsArray
[dtype
[Any
]],_NestedSequence
[_SupportsArray
[dtype
[Any
]]],bool
,int
,float
,complex
,str
,bytes
,_NestedSequence
[Union
[bool
,int
,float
,complex
,str
,bytes
]]]) – The values to be mapped.lower (
float
) – The input value corresponding to the upper sigma interval boundary.upper (
float
) – The input value corresponding to the lower sigma interval boundary.
- Return type:
- Returns:
A new array containing the transformed values.