Navigation
API > API/Plugins > API/Plugins/Learning
References
| Module | Learning |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/Learning/Public/LearningObservation.h |
| Include | #include "LearningObservation.h" |
Syntax
struct FObject
Remarks
ObservationObject
This object allows you to construct or get data from an instance of an observation you might give as input to a policy. Internally this object contains a pool of individual elements. This allows them to be constructed performantly and in a cache efficient way. This object is therefore required to access any data about the individual observation elements that are created.
Functions
| Type | Name | Description | |
|---|---|---|---|
| FObjectElement | CreateAnd
(
const FObjectAndParameters Parameters, |
||
| FObjectElement | CreateArray
(
const FObjectArrayParameters Parametes, |
||
| FObjectElement | CreateContinuous
(
const FObjectContinuousParameters Parameters, |
||
| FObjectElement | CreateEncoding
(
const FObjectEncodingParameters Parameters, |
||
| FObjectElement | CreateNull
(
const FName Tag |
||
| FObjectElement | CreateOrExclusive
(
const FObjectOrExclusiveParameters Parameters, |
||
| FObjectElement | CreateOrInclusive
(
const FObjectOrInclusiveParameters Parameters, |
||
| FObjectElement | CreateSet
(
const FObjectSetParameters Parameters, |
||
| void | Empty () |
Empty all internal buffers of elements. This invalidates all existing elements. | |
| FObjectAndParameters | GetAnd
(
const FObjectElement Element |
||
| FObjectArrayParameters | GetArray
(
const FObjectElement Element |
||
| FObjectContinuousParameters | GetContinuous
(
const FObjectElement Element |
||
| FObjectEncodingParameters | GetEncoding
(
const FObjectElement Element |
||
| uint32 | Get the current generation. | ||
| FObjectOrExclusiveParameters | GetOrExclusive
(
const FObjectElement Element |
||
| FObjectOrInclusiveParameters | GetOrInclusive
(
const FObjectElement Element |
||
| FObjectSetParameters | GetSet
(
const FObjectElement Element |
||
| FName | GetTag
(
const FObjectElement Element |
Gets the tag of the given element. | |
| EType | GetType
(
const FObjectElement Element |
Gets the type of the given element. | |
| bool | IsEmpty () |
Checks if the given object is empty of elements. | |
| bool | IsValid
(
const FObjectElement Element |
Checks if the given element is valid. | |
| void | Reset () |
Reset all internal buffers (without freeing memory). This invalidates all existing elements. |