TorchCraftAI
A bot for machine learning research on StarCraft: Brood War
Public Member Functions | Public Attributes | List of all members
cpid::Cpid2kMetrics::EventMetric Struct Reference

#include <cpid2kworker.h>

Public Member Functions

template<typename T >
 EventMetric (std::string n, T v, AggregationType a=AggregateMean, typename std::enable_if_t< std::is_arithmetic< T >::value > *=0)
 
virtual ~EventMetric ()=default
 

Public Attributes

std::string name
 
float value
 
AggregationType aggregation
 

Constructor & Destructor Documentation

template<typename T >
cpid::Cpid2kMetrics::EventMetric::EventMetric ( std::string  n,
v,
AggregationType  a = AggregateMean,
typename std::enable_if_t< std::is_arithmetic< T >::value > *  = 0 
)
inline
virtual cpid::Cpid2kMetrics::EventMetric::~EventMetric ( )
virtualdefault

Member Data Documentation

AggregationType cpid::Cpid2kMetrics::EventMetric::aggregation
std::string cpid::Cpid2kMetrics::EventMetric::name
float cpid::Cpid2kMetrics::EventMetric::value

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