Public Member Functions | Private Member Functions | Private Attributes
cartographer_ros::metrics::Histogram Class Reference

#include <histogram.h>

List of all members.

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_

Detailed Description

Definition at line 34 of file histogram.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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]
void cartographer_ros::metrics::Histogram::Observe ( double  value) [override]

Definition at line 39 of file histogram.cc.

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.


Member Data Documentation

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.

Definition at line 50 of file histogram.h.


The documentation for this class was generated from the following files:


cartographer_ros
Author(s): The Cartographer Authors
autogenerated on Wed Jul 10 2019 04:10:28