Method ScaleAction
ScaleAction(float, float, float)
Scales continuous action from [-1, 1] to arbitrary range.
Declaration
protected static float ScaleAction(float rawAction, float min, float max)
Parameters
| Type | Name | Description |
|---|---|---|
| float | rawAction | The input action value. |
| float | min | The minimum output value. |
| float | max | The maximum output value. |
Returns
| Type | Description |
|---|---|
| float | The |