1 #ifndef jb_book_depth_stats_hpp 2 #define jb_book_depth_stats_hpp 32 template <
typename book_depth_t>
33 void sample(book_depth_t book_depth) {
60 void print_csv(std::string
const& name, std::ostream& os)
const;
76 void validate()
const override;
84 #endif // jb_book_depth_statistics_hpp void sample(sample_type const &t)
Record a new sample.
Base class for all configuration objects.
void sample(book_depth_t book_depth)
Record a sample, that is book depth value after the event.
static void print_csv_header(std::ostream &os)
Print a CSV header.
A histogram class with controllable binning and range strategy.
histogram< integer_range_binning< book_depth_t > > book_depth_histogram_t
Keep statistics about a feed and its book depth.
void print_csv(std::string const &name, std::ostream &os) const
Print all the measurements in CSV format.
#define config_object_constructors(NAME)
book_depth_histogram_t book_depth_
Helper class to easily define configuration attributes.
jb::config_attribute< config, book_depth_t > max_book_depth
No more than this value is recorded.
Configure a book_depth_statistics object.
unsigned long int book_depth_t
book_depth_statistics(config const &cfg)
Constructor.
The top-level namespace for the JayBeams library.