Navigation
API > API/Plugins > API/Plugins/LearningAgents > API/Plugins/LearningAgents/ULearningAgentsObservations
Description
Specifies a new exclusive union observation. This represents an observation which is exclusively chosen from a set of named sub-observations. In other words, when this observation is created, you only need to provide one observation from the given sub-observations.
| Name | SpecifyExclusiveUnionObservationFromArrayViews |
| Type | function |
| Header File | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Public/LearningAgentsObservations.h |
| Include Path | #include "LearningAgentsObservations.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Private/LearningAgentsObservations.cpp |
static FLearningAgentsObservationSchemaElement SpecifyExclusiveUnionObservationFromArrayViews
(
ULearningAgentsObservationSchema * Schema,
const TArrayView < const FName > ElementNames,
const TArrayView < const FLearningAgentsObservationSchemaElement > Elements,
const int32 EncodingSize,
const FName Tag
)
The newly created observation schema element.
Parameters
| Name | Remarks |
|---|---|
| Schema | The Observation Schema |
| ElementNames | The names of the sub-observations that make up this union. |
| Elements | The corresponding sub-observations that make up this union. Must be the same size as ElementNames. |
| EncodingSize | The encoding size used to encode each sub-observation. |
| Tag | The tag of this new observation. Used during observation object validation and debugging. |