Struct FBoxSpaceDimension
- struct FBoxSpaceDimension
-
A struct representing a dimension of a box(continuous) space of possible observations or actions.
Public Functions
- FBoxSpaceDimension(float Low, float High)
-
Construct a BoxSpaceDimension with the given bounds.
- Parameters:
-
-
Low – [in] The lower bound
-
High – [in] The upper bound
-
- float RescaleValue(float Value) const
-
Rescale a normalized value to be within this space.
- Parameters:
-
Value – [in] The value to rescale
- Returns:
-
The rescaled value
- float RescaleValue(float Value, float OldHigh, float OldLow) const
-
Rescale from an another box space dimension to be within this space.
- Parameters:
-
-
Value – [in] The value to rescale
-
OldHigh – [in] The upper bound of the input space
-
OldLow – [in] The lower bound of the input space
-
- Returns:
-
The rescaled value
Public Members
Public Static Functions
- static inline FBoxSpaceDimension ZeroOneUnitDimension()
-
Get a unit sized BoxSpaceDimension centered at 0.5.
- Returns:
-
A BoxSpaceDimension with bounds [0, 1]
- static inline FBoxSpaceDimension CenteredUnitDimension()
-
Get a unit sized BoxSpaceDimension centered at 0.
- Returns:
-
A BoxSpaceDimension with bounds [-0.5, 0.5]