public class DiscreteSpace extends Object implements ActionSpace<Integer>
| Modifier and Type | Field and Description |
|---|---|
protected Random |
rnd |
protected int |
size |
| Constructor and Description |
|---|
DiscreteSpace(int size) |
DiscreteSpace(int size,
Random rnd) |
| Modifier and Type | Method and Description |
|---|---|
Object |
encode(Integer a) |
Integer |
noOp() |
Integer |
randomAction() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSizeprotected final int size
protected final Random rnd
public DiscreteSpace(int size)
public DiscreteSpace(int size,
Random rnd)
public Integer randomAction()
randomAction in interface ActionSpace<Integer>public Object encode(Integer a)
encode in interface ActionSpace<Integer>public Integer noOp()
noOp in interface ActionSpace<Integer>Copyright © 2021. All rights reserved.