#include <histogram.h>
Public Member Functions | |
std::map< double, double > | CountsByBucket () |
double | CumulativeCount () |
Histogram (const std::map< std::string, std::string > &labels, const BucketBoundaries &bucket_boundaries) | |
void | Observe (double value) override |
double | Sum () |
cartographer_ros_msgs::Metric | ToRosMessage () |
Private Member Functions | |
std::vector< double > bucket_counts_ | GUARDED_BY (mutex_) |
double sum_ | GUARDED_BY (mutex_) |
Private Attributes | |
const BucketBoundaries | bucket_boundaries_ |
const std::map< std::string, std::string > | labels_ |
absl::Mutex | mutex_ |
Definition at line 34 of file histogram.h.
cartographer_ros::metrics::Histogram::Histogram | ( | const std::map< std::string, std::string > & | labels, |
const BucketBoundaries & | bucket_boundaries | ||
) | [explicit] |
Definition at line 29 of file histogram.cc.
std::map< double, double > cartographer_ros::metrics::Histogram::CountsByBucket | ( | ) |
Definition at line 49 of file histogram.cc.
Definition at line 66 of file histogram.cc.
std::vector<double> bucket_counts_ cartographer_ros::metrics::Histogram::GUARDED_BY | ( | mutex_ | ) | [private] |
double sum_ cartographer_ros::metrics::Histogram::GUARDED_BY | ( | mutex_ | ) | [private] |
void cartographer_ros::metrics::Histogram::Observe | ( | double | value | ) | [override] |
Definition at line 39 of file histogram.cc.
double cartographer_ros::metrics::Histogram::Sum | ( | ) |
Definition at line 61 of file histogram.cc.
cartographer_ros_msgs::Metric cartographer_ros::metrics::Histogram::ToRosMessage | ( | ) |
Definition at line 71 of file histogram.cc.
const BucketBoundaries cartographer_ros::metrics::Histogram::bucket_boundaries_ [private] |
Definition at line 52 of file histogram.h.
const std::map<std::string, std::string> cartographer_ros::metrics::Histogram::labels_ [private] |
Definition at line 51 of file histogram.h.
absl::Mutex cartographer_ros::metrics::Histogram::mutex_ [private] |
Definition at line 50 of file histogram.h.