Player12
An open source football management simulator
Loading...
Searching...
No Matches
lab_stats.cpp File Reference
#include "tools/lab_stats.h"
#include <algorithm>
#include <array>
#include <cmath>
#include <numeric>
#include <random>
#include <vector>
#include "model/world_rng.h"

Namespaces

namespace  Lab
 

Functions

double Lab::tQuantile975 (std::size_t degrees_of_freedom)
 
Estimate Lab::meanEstimate (std::span< const double > values)
 
Estimate Lab::proportionEstimate (std::size_t successes, std::size_t trials)
 
Estimate Lab::ratioEstimate (std::span< const double > numerators, std::span< const double > denominators)
 
Estimate Lab::medianEstimate (std::span< const double > values)
 
Estimate Lab::bootstrapEstimate (std::size_t units, const std::function< double(std::span< const std::size_t >)> &statistic, std::uint64_t seed, int resamples)
 
Verdict Lab::classify (const Estimate &estimate, const std::optional< Band > &band)