#include <cccc_met.h>
Definition at line 68 of file cccc_met.h.
CCCC_Metric::CCCC_Metric |
( |
| ) |
|
Definition at line 59 of file cccc_met.cc.
void set_ratio(float _num, float _denom=1.0)
void set_treatment(const char *code)
CCCC_Metric::CCCC_Metric |
( |
int |
n, |
|
|
const char * |
treatment_tag = "" |
|
) |
| |
Definition at line 65 of file cccc_met.cc.
void set_ratio(float _num, float _denom=1.0)
void set_treatment(const char *code)
CCCC_Metric::CCCC_Metric |
( |
int |
n, |
|
|
int |
d, |
|
|
const char * |
treatment_tag = "" |
|
) |
| |
Definition at line 70 of file cccc_met.cc.
void set_ratio(float _num, float _denom=1.0)
void set_treatment(const char *code)
string CCCC_Metric::code |
( |
| ) |
const |
Definition at line 102 of file cccc_met.cc.
Metric_Treatment * treatment
Definition at line 85 of file cccc_met.cc.
Metric_Treatment * treatment
string CCCC_Metric::name |
( |
| ) |
const |
Definition at line 109 of file cccc_met.cc.
Metric_Treatment * treatment
void CCCC_Metric::set_ratio |
( |
float |
_num, |
|
|
float |
_denom = 1.0 |
|
) |
| |
void CCCC_Metric::set_treatment |
( |
const char * |
code | ) |
|
Definition at line 75 of file cccc_met.cc.
Metric_Treatment * treatment
static Metric_Treatment * getMetricTreatment(const string &metric_tag)
string CCCC_Metric::value_string |
( |
| ) |
const |
Definition at line 116 of file cccc_met.cc.
119 char numerator_too_low=
'-';
122 ostringstream valuestr;
123 valuestr.setf(std::ios::fixed);
124 int width=6, precision=0;
125 float n_threshold=0, low_threshold=1e9, high_threshold=1e9;
134 valuestr.width(width);
135 valuestr.precision(precision);
138 string too_low_string(width,numerator_too_low);
139 valuestr << too_low_string;
143 string infinity_string(width,infinity);
144 valuestr << infinity_string;
164 const double ROUNDING_FACTOR = 1.0e-9;
165 result-=ROUNDING_FACTOR;
169 retval=valuestr.str();
Metric_Treatment * treatment
float CCCC_Metric::denominator |
|
private |
float CCCC_Metric::numerator |
|
private |
The documentation for this class was generated from the following files: