MachineIntelligenceCore:Algorithms
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
mic::types::RandomNESWAction Class Reference

Class representing a random N/E/S/W action. More...

#include <Action2D.hpp>

Inheritance diagram for mic::types::RandomNESWAction:
Collaboration diagram for mic::types::RandomNESWAction:

Public Member Functions

 RandomNESWAction ()
 
- Public Member Functions inherited from mic::types::NESWAction
 NESWAction ()
 
 NESWAction (NESW type_)
 
 NESWAction (size_t type_)
 
void setAction (NESW type_)
 
- Public Member Functions inherited from mic::types::Action2D< NESW >
virtual ~Action2D ()
 
NESW getType ()
 
- Public Member Functions inherited from mic::types::Action2DInterface
 Action2DInterface ()
 

Private Attributes

std::random_device rd
 
std::mt19937_64 rng_mt19937_64
 

Additional Inherited Members

- Public Attributes inherited from mic::types::Action2DInterface
int dx
 Increment according to x axis. More...
 
int dy
 Increment according to y axis. More...
 
- Protected Member Functions inherited from mic::types::Action2D< NESW >
 Action2D ()
 
- Protected Attributes inherited from mic::types::Action2D< NESW >
NESW type
 

Detailed Description

Class representing a random N/E/S/W action.

Author
tkornuta

Definition at line 188 of file Action2D.hpp.

Constructor & Destructor Documentation

mic::types::RandomNESWAction::RandomNESWAction ( )
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.

Here is the call graph for this function:

Member Data Documentation

std::random_device mic::types::RandomNESWAction::rd
private

Random device used for generation of random numbers.

Definition at line 203 of file Action2D.hpp.

std::mt19937_64 mic::types::RandomNESWAction::rng_mt19937_64
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().


The documentation for this class was generated from the following file: