Navigation
API > API/Plugins > API/Plugins/LearningAgents > API/Plugins/LearningAgents/ULearningAgentsObservations
References
| Module | LearningAgents |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Public/LearningAgentsObservations.h |
| Include | #include "LearningAgentsObservations.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Private/LearningAgentsObservations.cpp |
static FLearningAgentsObservationObjectElement MakeInclusiveDiscreteObservationFromArrayView
(
ULearningAgentsObservationObject * Object,
const TArrayView < const int32 > DiscreteIndices,
const int32 Size,
const FName Tag,
const bool bVisualLoggerEnabled,
ULearningAgentsManagerListener * VisualLoggerListener,
const int32 VisualLoggerAgentId,
const FVector VisualLoggerLocation,
const FLinearColor VisualLoggerColor
)
Remarks
Make a new inclusive discrete observation. The newly created observation object element.
Parameters
| Name | Description |
|---|---|
| Object | The Observation Object |
| DiscreteIndices | The indices of the discrete observations. All values must be smaller than the given Size. |
| Size | The size of the discrete observation. Must be equal to the size given during Specify. |
| Tag | The tag of the corresponding observation. Must match the tag given during Specify. |
| bVisualLoggerEnabled | When true, debug data will be sent to the visual logger. |
| VisualLoggerListener | The listener object which is making this observation. This must be set to use logging. |
| VisualLoggerAgentId | The agent id associated with this observation. |
| VisualLoggerLocation | A location for the visual logger information in the world. |
| VisualLoggerColor | The color for the visual logger display. |