Player12
An open source football management simulator
Loading...
Searching...
No Matches
lab_runner.h File Reference
#include <array>
#include <cstdint>
#include <functional>
#include <map>
#include <span>
#include <stdexcept>
#include <string>
#include <vector>
#include "global/stats_config.h"
#include "model/strategy.h"
#include "tools/lab_report.h"
#include "tools/lab_stats.h"

Go to the source code of this file.

Classes

struct  Lab::MatchSample
 
struct  Lab::TeamSetup
 
struct  Lab::MatchJob
 
class  Lab::SimulationError
 

Namespaces

namespace  Lab
 

Enumerations

enum  Lab::GameStateIndex : std::uint8_t { Lab::LEAD_BY_ONE = 0 , Lab::LEVEL = 1 , Lab::TRAIL_BY_ONE = 2 }
 
enum  Lab::StrengthIndex : std::uint8_t { Lab::MAN_DOWN = 0 , Lab::EVEN = 1 , Lab::MAN_UP = 2 }
 

Functions

std::uint32_t Lab::matchSeed (std::uint64_t seed, std::uint64_t index)
 
MatchSample Lab::simulateMatch (const MatchJob &job, const StatsConfig &config)
 
std::vector< MatchSample > Lab::simulateMatches (std::span< const MatchJob > jobs, const StatsConfig &config, unsigned threads, const std::function< void(std::size_t)> &progress)
 
MatchSample Lab::sampleFromReport (const MatchReport &report)
 
std::map< std::string, Estimate > Lab::matchMetrics (std::span< const MatchSample > samples)
 
std::vector< TextTable > Lab::matchTables (std::span< const MatchSample > samples)
 
TextTable Lab::ratingGapTable (std::span< const MatchSample > samples)
 
std::vector< MatchJob > Lab::tacticJobs (std::uint64_t seed, int seeds_per_pair, float rating)
 
std::array< std::size_t, 2 > Lab::tacticPresetsOf (std::size_t job_index, int seeds_per_pair)
 
void Lab::tacticMetrics (std::span< const MatchSample > samples, int seeds_per_pair, std::map< std::string, Estimate > &metrics, std::vector< TextTable > &tables)
 

Variables

constexpr std::size_t Lab::GOAL_TIME_BINS = 6