Struct TemporalNormAggregate

Struct Documentation

struct TemporalNormAggregate

Aggregate norm data for a single variable over time.

Public Functions

inline void push(double val, double time)

Add a new value for the variable to be aggregated.

inline void wrap()

Finalize the calculation(s)

inline void scale(const TemporalNormAggregate &ref, double threshold)

Scale by a reference value (only if the current value is above the given threshold (used internally for relative errors)

inline std::ostream &display(std::ostream &os = std::cout, const std::string &indent = "  ") const

Pretty-print label and values to output stream.

Public Members

std::string label

Name of variable.

double max_value = {0.0}

L-inf norm.

double max_value_time = {0.0}

Time at which max value occurred.

double L2 = {0.0}

L2 norm.