public OutputStat(string name, double val, CumulationType cumul, bool hidden) { stat_count = 1; stat_name = name; stat_value = val; stat_hidden = hidden; cumulation_type = cumul; if (cumulation_type == CumulationType.MIN_MAX_AVG) { min_val = stat_value; max_val = stat_value; } }
public OutputStat(string name, double val, CumulationType cumul) : this(name, val, cumul, false) { }
public void Normalize() { stat_value = Value; stat_count = 1; if (cumulation_type == CumulationType.SUM) { cumulation_type = CumulationType.AVERAGE; } }