Struct astrea::trace::RiseSetStats¶
ClassList > astrea > trace > RiseSetStats
The RiseSetStats struct represents statistics for rise and set times based on aRiseSetArray and a RiseSetMetric.More...
#include <RiseSetStats.hpp>
Public Functions¶
| Type | Name |
|---|---|
| RiseSetStats () = default Default constructor for RiseSetStats . |
|
| RiseSetStats (const RiseSetArray & risesets) Constructs a RiseSetStats object from aRiseSetArray and a RiseSetMetric. |
|
| const auto & | at (const RiseSetMetric & metric) const Accesses the statistics for a given RiseSetMetric. |
| auto & | operator[] (const RiseSetMetric & metric) Accesses the statistics for a given RiseSetMetric. |
| std::vector< std::string > | to_string_vector () const Converts the statistics to a vector of strings for output. |
Detailed Description¶
It contains a map of RiseSetMetric to Stats<Time>, which holds the calculated statistics for each metric (GAP and ACCESS_TIME).
Public Functions Documentation¶
function RiseSetStats [1/2]¶
Default constructor for RiseSetStats .
function RiseSetStats [2/2]¶
Constructs a RiseSetStats object from aRiseSetArray and a RiseSetMetric.
Parameters:
risesetsThe RiseSetArray containing the rise and set times to calculate statistics for.
Exception:
std::runtime_errorIf the RiseSetMetric is unrecognized.
function at¶
Accesses the statistics for a given RiseSetMetric.
Parameters:
metricThe RiseSetMetric to access statistics for.
Returns:
const Stats<Time>& A reference to the Stats<Time> object containing the statistics for the given metric.
function operator[]¶
Accesses the statistics for a given RiseSetMetric.
Parameters:
metricThe RiseSetMetric to access statistics for.
Returns:
Stats<Time>& A reference to the Stats<Time> object containing the statistics for the given metric.
function to_string_vector¶
Converts the statistics to a vector of strings for output.
Returns:
std::vector<std::string> A vector of strings representing the statistics for each metric.
The documentation for this class was generated from the following file astrea/trace/trace/analysis/stats/RiseSetStats.hpp