Skip to content

File RiseSetStats.hpp

File List > analysis > stats > RiseSetStats.hpp

Go to the documentation of this file

#pragma once

#include <string>
#include <vector>

#include <gtl/btree.hpp>

#include <units/units.hpp>

#include <trace/analysis/stats/Stats.hpp>
#include <trace/trace.fwd.hpp>
#include <trace/types/enums.hpp>

namespace astrea {
namespace trace {

struct RiseSetStats {

    RiseSetStats() = default;

    RiseSetStats(const RiseSetArray& risesets);

    std::vector<std::string> to_string_vector() const;

    const auto& at(const RiseSetMetric& metric) const { return _stats.at(metric); }

    auto& operator[](const RiseSetMetric& metric) { return _stats[metric]; }

  private:
    gtl::btree_map<RiseSetMetric, Stats<Time>> _stats; 
};

} // namespace trace
} // namespace astrea