metric_stat.h
Go to the documentation of this file.
1 
8 #pragma once
10 
11 namespace illumina { namespace interop { namespace model { namespace summary
12 {
17  {
18  public:
25  metric_stat(const float mean = std::numeric_limits<float>::quiet_NaN(),
26  const float stddev = std::numeric_limits<float>::quiet_NaN(),
27  const float median = std::numeric_limits<float>::quiet_NaN()) :
28  m_mean(mean),
31  {
32  }
33 
34  public:
37  void clear()
38  {
39  m_mean = std::numeric_limits<float>::quiet_NaN();
40  m_stddev = std::numeric_limits<float>::quiet_NaN();
41  m_median = std::numeric_limits<float>::quiet_NaN();
42  }
43 
44  public:
49  void mean(const float val)
50  {
51  m_mean = val;
52  }
53 
58  void stddev(const float val)
59  {
60  m_stddev = val;
61  }
62 
67  void median(const float val)
68  {
69  m_median = val;
70  }
71 
72  public:
85  float mean() const
86  {
87  return m_mean;
88  }
93  float stddev() const
94  {
95  return m_stddev;
96  }
101  float median() const
102  {
103  return m_median;
104  }
107  protected:
109  float m_mean;
111  float m_stddev;
113  float m_median;
114  template<class MetricType, int Version>
115  friend struct io::generic_layout;
116  };
117 
118 }}}}
119 
float m_mean
Definition: metric_stat.h:109
void median(const float val)
Definition: metric_stat.h:67
Definition: enum_description.h:15
float median() const
Definition: metric_stat.h:101
float mean() const
Definition: metric_stat.h:85
def summary(run_metrics, level='Total', columns=None, dtype='f4', ignore_missing_columns=True, extra)
Definition: core.py:217
Definition: generic_layout.h:24
void clear()
Definition: metric_stat.h:37
float m_median
Definition: metric_stat.h:113
metric_stat(const float mean=std::numeric_limits< float >::quiet_NaN(), const float stddev=std::numeric_limits< float >::quiet_NaN(), const float median=std::numeric_limits< float >::quiet_NaN())
Definition: metric_stat.h:25
void mean(const float val)
Definition: metric_stat.h:49
void stddev(const float val)
Definition: metric_stat.h:58
float m_stddev
Definition: metric_stat.h:111
float stddev() const
Definition: metric_stat.h:93