PayoffMatrix.hpp
A simple game theory payoff matrix.
This file is part of Empirical, https://github.com/devosoft/Empirical Copyright (C) 2016-2021 Michigan State University MIT Software license; see doc/LICENSE.md
Defines
-
INCLUDE_EMP_GAMES_PAYOFF_MATRIX_HPP_GUARD
-
class PayoffMatrix
- #include <PayoffMatrix.hpp>
Public Types
-
using move_t = size_t
Public Functions
-
inline PayoffMatrix(size_t _moves = 2)
-
inline void Reset()
-
inline void SetVal(size_t self, size_t other, double value)
-
inline double &operator()(size_t A, size_t B)
-
inline double operator()(size_t A, size_t B) const
-
inline void SetupPD(double u)
-
inline void SetupSnowdrift(double cost)
Private Functions
-
inline constexpr size_t to_index(size_t A, size_t B) const
-
using move_t = size_t