Player12
An open source football management simulator
Loading...
Searching...
No Matches
lab_runner.cpp File Reference
#include "tools/lab_runner.h"
#include <algorithm>
#include <cmath>
#include <format>
#include <memory>
#include <numeric>
#include <utility>
#include "global/thread_pool.h"
#include "model/match.h"
#include "model/match_engine.h"
#include "model/match_report.h"
#include "model/player.h"
#include "tools/lab_fixtures.h"

Namespaces

namespace  Lab
 

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)