qgym.spaces.box module

This module contains the Box space, i.e., a possibly open-ended interval in \(n\) dimensions.

Usage:
>>> from qgym.spaces import Box
>>> Box(low=0, high=20, shape=(2, 3), dtype=int)
Box([[0 0 0]
 [0 0 0]], [[20 20 20]
 [20 20 20]], (2, 3), int32)
class qgym.spaces.box.Box(low, high, shape=None, dtype=<class 'numpy.float64'>, *, rng=None)[source]

Bases: Box

An \(n\)-dimensional box space, i.e., collection of (possibly) open-ended intervals.

__init__(low, high, shape=None, dtype=<class 'numpy.float64'>, *, rng=None)[source]

Initialize a Box space, i.e., a possibly open-ended interval in \(n\) dimensions.

Parameters: