FBinarySpace
struct FBinarySpace : public FSpace
A struct representing a Binary space (e.g.
boolean vector) of possible observations or actions.
Dependencies: FBinarySpace, FSpace
Inherits from: public FSpace
Public Interface
Constructors:
FBinarySpace
FBinarySpace()
Construct an empty BinarySpace.
Source: Schola/Source/Schola/Public/Common/Spaces/BinarySpace.h
(line 26, column 1)
Implementation: Schola/Source/Schola/Private/Common/Spaces/BinarySpace.cpp
(lines 5-7)
FBinarySpace
FBinarySpace(int Shape)
Construct a BinarySpace with the given number of dimensions.
Parameters:
Shape
(int
) – [in] The number of dimensions in this BinarySpace
Source: Schola/Source/Schola/Public/Common/Spaces/BinarySpace.h
(line 32, column 1)
Implementation: Schola/Source/Schola/Private/Common/Spaces/BinarySpace.cpp
(lines 9-12)
Public Functions:
Merge
void Merge(const FBinarySpace &Other)
Merge another BinarySpace into this one.
Parameters:
Other
(const FBinarySpace &
) – [in] The BinarySpace to merge
Source: Schola/Source/Schola/Public/Common/Spaces/BinarySpace.h
(line 38, column 6)
Implementation: Schola/Source/Schola/Private/Common/Spaces/BinarySpace.cpp
(lines 14-17)
Copy
void Copy(const FBinarySpace &Other)
Copy constructor.
Parameters:
Other
(const FBinarySpace &
) – [in] The BinarySpace to copy
Source: Schola/Source/Schola/Public/Common/Spaces/BinarySpace.h
(line 44, column 6)
Implementation: Schola/Source/Schola/Private/Common/Spaces/BinarySpace.cpp
(lines 19-22)
FillProtobuf
void FillProtobuf(BinarySpace *Msg) const const
fill a protobuf message with the data from this BinarySpace
Parameters:
Msg
(BinarySpace *
) – [in] A ptr to the protobuf message to fill
Attributes: const
Source: Schola/Source/Schola/Public/Common/Spaces/BinarySpace.h
(line 50, column 6)
Implementation: Schola/Source/Schola/Private/Common/Spaces/BinarySpace.cpp
(lines 57-60)
FillProtobuf
void FillProtobuf(BinarySpace &Msg) const const
fill a protobuf message with the data from this BinarySpace
Parameters:
Msg
(BinarySpace &
) – [in] A ref to the protobuf message to fill
Attributes: const
Source: Schola/Source/Schola/Public/Common/Spaces/BinarySpace.h
(line 56, column 6)
Implementation: Schola/Source/Schola/Private/Common/Spaces/BinarySpace.cpp
(lines 62-65)
FillProtobuf
virtual void FillProtobuf(FundamentalSpace *Msg) const override const
Fill a protobuf message with the data from this space.
Parameters:
Msg
(FundamentalSpace *
) – [in] The protobuf message to fill
Attributes: const
, virtual
Source: Schola/Source/Schola/Public/Common/Spaces/BinarySpace.h
(line 60, column 6)
Implementation: Schola/Source/Schola/Private/Common/Spaces/BinarySpace.cpp
(lines 24-28)
GetNumDimensions
virtual int GetNumDimensions() const override const
Get the number of dimensions in this space.
Returns: The number of dimensions in this space
Returns: int
Attributes: const
, virtual
Source: Schola/Source/Schola/Public/Common/Spaces/BinarySpace.h
(line 62, column 5)
Implementation: Schola/Source/Schola/Private/Common/Spaces/BinarySpace.cpp
(lines 30-33)
Validate
virtual ESpaceValidationResult Validate(TPoint &Observation) const override const
Test if an observation is in this space.
Returns: An enum indicating the result of the validation
Parameters:
Observation
(TPoint &
) – [in] The observation to validate
Returns: ESpaceValidationResult
Attributes: const
, virtual
Source: Schola/Source/Schola/Public/Common/Spaces/BinarySpace.h
(line 64, column 24)
Implementation: Schola/Source/Schola/Private/Common/Spaces/BinarySpace.cpp
(lines 35-54)
GetFlattenedSize
virtual int GetFlattenedSize() const override const
Get the size of the flattened representation of this space.
Returns: The size of the flattened representation of this space
Returns: int
Attributes: const
, virtual
Source: Schola/Source/Schola/Public/Common/Spaces/BinarySpace.h
(line 66, column 5)
Implementation: Schola/Source/Schola/Private/Common/Spaces/BinarySpace.cpp
(lines 87-90)
IsEmpty
virtual bool IsEmpty() const override const
Check if this space is empty.
Returns: True if this space is empty, false otherwise
Returns: bool
Attributes: const
, virtual
Source: Schola/Source/Schola/Public/Common/Spaces/BinarySpace.h
(line 68, column 6)
Implementation: Schola/Source/Schola/Private/Common/Spaces/BinarySpace.cpp
(lines 92-95)
MakeTPoint
virtual TPoint MakeTPoint() const override const
Create a TPoint from this space.
Returns: A TPoint belonging to this space, with correctly set variant type.
Returns: TPoint
Attributes: const
, virtual
Source: Schola/Source/Schola/Public/Common/Spaces/BinarySpace.h
(line 70, column 8)
Implementation: Schola/Source/Schola/Private/Common/Spaces/BinarySpace.cpp
(lines 97-100)
UnflattenAction
virtual TPoint UnflattenAction(const TArray<float> &Data, int Offset=0) const override const
Unflatten an action from a buffer.
Parameters:
Data
(const TArray<float> &
) – [in] The buffer to unflatten fromOffset
(int
) – [in] The offset into the buffer to start unflattening from
Returns: TPoint
Attributes: const
, virtual
Source: Schola/Source/Schola/Public/Common/Spaces/BinarySpace.h
(line 72, column 8)
Implementation: Schola/Source/Schola/Private/Common/Spaces/BinarySpace.cpp
(lines 67-75)
FlattenPoint
virtual void FlattenPoint(TArrayView<float> Buffer, const TPoint &Point) const override const
Flatten a point into a buffer.
Parameters:
Buffer
(TArrayView<float>
) – [inout] The buffer to flatten intoPoint
(const TPoint &
) – [in] The point to flatten
Attributes: const
, virtual
Source: Schola/Source/Schola/Public/Common/Spaces/BinarySpace.h
(line 74, column 6)
Implementation: Schola/Source/Schola/Private/Common/Spaces/BinarySpace.cpp
(lines 77-85)
Public Members:
int Shape
int Shape = = 0
The number of dimensions in this BinarySpace.
Source: Schola/Source/Schola/Public/Common/Spaces/BinarySpace.h
(line 21, column 5)
Used By
This type is used by:
- FBinarySpace
- FDictSpace
- IBinaryActuatorWrapper
- IBinaryObserverWrapper
- IBlueprintBinaryActuatorWrapper
- IBlueprintBinaryObserverWrapper
- UBinaryActuator
- UBinaryObserver
- UBlueprintBinaryActuator
- UBlueprintBinaryObserver
- UDebugBinaryActuator
- UDebugBinaryObserver
- UEventObserver
Source: Schola/Source/Schola/Public/Common/Spaces/BinarySpace.h
(line 15, column 1)