SimulationCraft
SimulationCraft is a tool to explore combat mechanics in the popular MMO RPG World of Warcraft (tm).
simple_sample_data_t Class Reference
Inheritance diagram for simple_sample_data_t:
simple_sample_data_with_min_max_t extended_sample_data_t sample_data_helper_t

Public Types

using value_t = double
 

Public Member Functions

void add (double x)
 
value_t mean () const
 
value_t pretty_mean () const
 
value_t sum () const
 
size_t count () const
 
void merge (const simple_sample_data_t &other)
 
void reset ()
 

Static Protected Member Functions

static value_t nan ()
 

Protected Attributes

value_t _sum = 0.0
 
size_t _count = 0
 

Static Protected Attributes

static const bool SAMPLE_DATA_NO_NAN = true