|
|
|
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Adds a float array observation to the vector observations of the agent.
|
|
|
|
/// Increases the size of the agents vector observation by size of array.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="observation">Observation.</param>
|
|
|
|
protected void AddVectorObs(float[] observation) |
|
|
|
{ |
|
|
|
info.vectorObservation.AddRange(observation); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Adds a float list observation to the vector observations of the agent.
|
|
|
|
/// Increases the size of the agents vector observation by size of list.
|
|
|
|
/// Adds a collection of float observations to the vector observations of the agent.
|
|
|
|
/// Increases the size of the agents vector observation by size of the collection.
|
|
|
|
protected void AddVectorObs(List<float> observation) |
|
|
|
protected void AddVectorObs(IEnumerable<float> observation) |
|
|
|
{ |
|
|
|
info.vectorObservation.AddRange(observation); |
|
|
|
} |
|
|
|