MachineIntelligenceCore:Algorithms
|
Class representing a random N/E/S/W action. More...
#include <Action2D.hpp>
Public Member Functions | |
RandomNESWAction () | |
![]() | |
NESWAction () | |
NESWAction (NESW type_) | |
NESWAction (size_t type_) | |
void | setAction (NESW type_) |
![]() | |
virtual | ~Action2D () |
NESW | getType () |
![]() | |
Action2DInterface () | |
Private Attributes | |
std::random_device | rd |
std::mt19937_64 | rng_mt19937_64 |
Additional Inherited Members | |
![]() | |
int | dx |
Increment according to x axis. More... | |
int | dy |
Increment according to y axis. More... | |
![]() | |
Action2D () | |
![]() | |
NESW | type |
Class representing a random N/E/S/W action.
Definition at line 188 of file Action2D.hpp.
|
inline |
Default public random NESW action constructor. Randomly selects action type.
Definition at line 193 of file Action2D.hpp.
References mic::types::North, mic::types::Random, rng_mt19937_64, mic::types::NESWAction::setAction(), mic::types::Action2D< NESW >::type, and mic::types::West.
|
private |
Random device used for generation of random numbers.
Definition at line 203 of file Action2D.hpp.
|
private |
Mersenne Twister pseudo-random generator of 32-bit numbers with a state size of 19937 bits.
Definition at line 215 of file Action2D.hpp.
Referenced by RandomNESWAction().