Empirical
Public Types | Public Member Functions | List of all members
emp::PayoffMatrix Class Reference

#include <PayoffMatrix.h>

Public Types

using move_t = size_t
 

Public Member Functions

 PayoffMatrix (size_t _moves=2)
 
void Reset ()
 
void SetVal (size_t self, size_t other, double value)
 
double & operator() (size_t A, size_t B)
 
double operator() (size_t A, size_t B) const
 
void SetupPD (double u)
 
void SetupSnowdrift (double cost)
 
std::unordered_map< int, double > AsInput (size_t player_id) const
 

Member Typedef Documentation

using emp::PayoffMatrix::move_t = size_t

Constructor & Destructor Documentation

emp::PayoffMatrix::PayoffMatrix ( size_t  _moves = 2)
inline

Member Function Documentation

std::unordered_map<int, double> emp::PayoffMatrix::AsInput ( size_t  player_id) const
inline
double& emp::PayoffMatrix::operator() ( size_t  A,
size_t  B 
)
inline
double emp::PayoffMatrix::operator() ( size_t  A,
size_t  B 
) const
inline
void emp::PayoffMatrix::Reset ( )
inline
void emp::PayoffMatrix::SetupPD ( double  u)
inline
void emp::PayoffMatrix::SetupSnowdrift ( double  cost)
inline
void emp::PayoffMatrix::SetVal ( size_t  self,
size_t  other,
double  value 
)
inline

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