SoDaRadio-12.2.0-cut_dependencies:6c82803
Loading...
Searching...
No Matches
SoDa::Histogram Class Reference

A generic histogram widget. More...

#include <Histogram.hxx>

Public Member Functions

 Histogram (unsigned int _num_buckets, double _min, double _max)
 Constructor for the histogram.
void updateTable (double v)
void writeTable (const std::string &fname)

Protected Attributes

unsigned int * table
double recip_bucket_interval
unsigned int num_buckets
double min
double max

Detailed Description

A generic histogram widget.

Definition at line 38 of file Histogram.hxx.

Constructor & Destructor Documentation

◆ Histogram()

SoDa::Histogram::Histogram ( unsigned int _num_buckets,
double _min,
double _max )
inline

Constructor for the histogram.

Parameters
_num_bucketsthe number of buckets in the histogram
_minthe value corresponding to the bottom of bucket 0 in the histogram
_maxthe value corresponding to the top of bucket (num_buckets - 1) in the histogram

Definition at line 50 of file Histogram.hxx.

References max, min, num_buckets, recip_bucket_interval, and table.

Member Function Documentation

◆ updateTable()

void SoDa::Histogram::updateTable ( double v)
inline

Definition at line 60 of file Histogram.hxx.

References max, min, num_buckets, recip_bucket_interval, and table.

◆ writeTable()

void SoDa::Histogram::writeTable ( const std::string & fname)
inline

Definition at line 67 of file Histogram.hxx.

References min, num_buckets, recip_bucket_interval, and table.

Member Data Documentation

◆ max

double SoDa::Histogram::max
protected

Definition at line 88 of file Histogram.hxx.

Referenced by Histogram(), and updateTable().

◆ min

double SoDa::Histogram::min
protected

Definition at line 88 of file Histogram.hxx.

Referenced by Histogram(), updateTable(), and writeTable().

◆ num_buckets

unsigned int SoDa::Histogram::num_buckets
protected

Definition at line 87 of file Histogram.hxx.

Referenced by Histogram(), updateTable(), and writeTable().

◆ recip_bucket_interval

double SoDa::Histogram::recip_bucket_interval
protected

Definition at line 86 of file Histogram.hxx.

Referenced by Histogram(), updateTable(), and writeTable().

◆ table

unsigned int* SoDa::Histogram::table
protected

Definition at line 85 of file Histogram.hxx.

Referenced by Histogram(), updateTable(), and writeTable().


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