31 int n, nvals, most_common_count, nzeros;
32 float median, q1, q3, iqr, mean, sdv, skew, min, max;
33 float most_common_value;
35 bool trim_flag, remove_flag, normalize_flag, replace_missing_to_mean_flag;
36 float trim_min, trim_max;
37 float remove_min, remove_max;
44 void print(
const string& prefix);
45 void print_short(
const string& prefix);
46 void calculate(vector<float> &values);
47 void get_mean_and_sdv(vector<float> &values,
bool take_missing_into_account =
false);
48 void get_cleaning_range(vector<float>& values,
float& min_val,
float& max_val,
float std_mult = MED_CLEANER_MAX_Z);
49 void get_limits_iteratively(vector<float> values,
float std_mult = MED_CLEANER_MAX_Z);
50 void get_cleaning_params(vector<float> values);
51 int clear(vector<float>& values);
52 int clean(vector<float>& values) {
return clear(values); };
53 void remove_trim_replace(vector<float> &values);
55 void normalize(vector<float>& values);
57 bool is_valid(
float value);
58 float get_trimmed(
float value);
59 float get_value(
float value);
60 int trim(
float& value);
61 void single_remove_trim_replace(
float &val);
62 void single_normalize(
float &val);
68 string object_json()
const;
size_t deserialize(unsigned char *buffer)
Deserialiazing blob to object. returns number of bytes read.
Definition MedCleaner.cpp:380
size_t serialize(unsigned char *buffer)
Serialiazing object to blob memory. return number ob bytes wrote to memory.
Definition MedCleaner.cpp:348