SoDaRadio-5.0.3-master:8901fb5
Public Member Functions | Protected Attributes | List of all members
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. More...
 
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 39 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 51 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 61 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 68 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 86 of file Histogram.hxx.

Referenced by Histogram(), and updateTable().

◆ min

double SoDa::Histogram::min
protected

Definition at line 86 of file Histogram.hxx.

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

◆ num_buckets

unsigned int SoDa::Histogram::num_buckets
protected

Definition at line 85 of file Histogram.hxx.

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

◆ recip_bucket_interval

double SoDa::Histogram::recip_bucket_interval
protected

Definition at line 84 of file Histogram.hxx.

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

◆ table

unsigned int* SoDa::Histogram::table
protected

Definition at line 83 of file Histogram.hxx.

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


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