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

Public Member Functions

 sample_data_helper_t (util::string_view n, bool simple)
 
void add (double x)
 
void datacollection_begin ()
 
void datacollection_end ()
 
- Public Member Functions inherited from extended_sample_data_t
 extended_sample_data_t (util::string_view n, bool s=true)
 
void change_mode (bool simple)
 
const std::string & name () const
 
void reserve (std::size_t capacity)
 
void add (value_t x)
 
bool sorted () const
 
size_t size () const
 
void analyze ()
 
void analyze_basics ()
 
value_t mean () const
 
value_t pretty_mean () const
 
size_t count () const
 
void analyze_variance ()
 
void sort ()
 
void create_histogram (unsigned int num_buckets=50)
 
void clear ()
 
value_t percentile (double x) const
 
const std::vector< value_t > & data () const
 
const std::vector< value_t > & sorted_data () const
 
void merge (const extended_sample_data_t &other)
 
- Public Member Functions inherited from simple_sample_data_with_min_max_t
void add (value_t x)
 
value_t min () const
 
value_t max () const
 
void merge (const simple_sample_data_with_min_max_t &other)
 
void reset ()
 
- Public Member Functions inherited from simple_sample_data_t
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 ()
 

Additional Inherited Members

- Public Types inherited from simple_sample_data_t
using value_t = double
 
- Public Attributes inherited from extended_sample_data_t
std::string name_str
 
value_t _mean
 
value_t variance
 
value_t std_dev
 
value_t mean_variance
 
value_t mean_std_dev
 
std::vector< size_t > distribution
 
bool simple
 
- Protected Member Functions inherited from simple_sample_data_with_min_max_t
void set_min (double x)
 
void set_max (double x)
 
- Static Protected Member Functions inherited from simple_sample_data_t
static value_t nan ()
 
- Protected Attributes inherited from simple_sample_data_with_min_max_t
value_t _min = std::numeric_limits<value_t>::max()
 
value_t _max = std::numeric_limits<value_t>::lowest()
 
- Protected Attributes inherited from simple_sample_data_t
value_t _sum = 0.0
 
size_t _count = 0
 
- Static Protected Attributes inherited from simple_sample_data_t
static const bool SAMPLE_DATA_NO_NAN = true